@jini-ai/core 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.
Files changed (54) hide show
  1. package/LICENSE +201 -0
  2. package/dist/api-token-auth.d.ts +28 -0
  3. package/dist/api-token-auth.d.ts.map +1 -0
  4. package/dist/api-token-auth.js +30 -0
  5. package/dist/api-token-auth.js.map +1 -0
  6. package/dist/bindings.d.ts +18 -0
  7. package/dist/bindings.d.ts.map +1 -0
  8. package/dist/bindings.js +41 -0
  9. package/dist/bindings.js.map +1 -0
  10. package/dist/compose.typecheck.d.ts +2 -0
  11. package/dist/compose.typecheck.d.ts.map +1 -0
  12. package/dist/compose.typecheck.js +29 -0
  13. package/dist/compose.typecheck.js.map +1 -0
  14. package/dist/daemon.d.ts +40 -0
  15. package/dist/daemon.d.ts.map +1 -0
  16. package/dist/daemon.js +37 -0
  17. package/dist/daemon.js.map +1 -0
  18. package/dist/index.d.ts +13 -0
  19. package/dist/index.d.ts.map +1 -0
  20. package/dist/index.js +11 -0
  21. package/dist/index.js.map +1 -0
  22. package/dist/internal.d.ts +36 -0
  23. package/dist/internal.d.ts.map +1 -0
  24. package/dist/internal.js +35 -0
  25. package/dist/internal.js.map +1 -0
  26. package/dist/origin-validation.d.ts +63 -0
  27. package/dist/origin-validation.d.ts.map +1 -0
  28. package/dist/origin-validation.js +198 -0
  29. package/dist/origin-validation.js.map +1 -0
  30. package/dist/pack.d.ts +26 -0
  31. package/dist/pack.d.ts.map +1 -0
  32. package/dist/pack.js +4 -0
  33. package/dist/pack.js.map +1 -0
  34. package/dist/principal.d.ts +16 -0
  35. package/dist/principal.d.ts.map +1 -0
  36. package/dist/principal.js +2 -0
  37. package/dist/principal.js.map +1 -0
  38. package/dist/redact.d.ts +48 -0
  39. package/dist/redact.d.ts.map +1 -0
  40. package/dist/redact.js +190 -0
  41. package/dist/redact.js.map +1 -0
  42. package/dist/token.d.ts +22 -0
  43. package/dist/token.d.ts.map +1 -0
  44. package/dist/token.js +7 -0
  45. package/dist/token.js.map +1 -0
  46. package/dist/tool-registry.d.ts +114 -0
  47. package/dist/tool-registry.d.ts.map +1 -0
  48. package/dist/tool-registry.js +43 -0
  49. package/dist/tool-registry.js.map +1 -0
  50. package/dist/tool-tokens.d.ts +3 -0
  51. package/dist/tool-tokens.d.ts.map +1 -0
  52. package/dist/tool-tokens.js +10 -0
  53. package/dist/tool-tokens.js.map +1 -0
  54. package/package.json +48 -0
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for describing the origin of the Work and
141
+ reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Support. While redistributing the Work or
166
+ Derivative Works thereof, You may choose to offer, and charge a
167
+ fee for, acceptance of support, warranty, indemnity, or other
168
+ liability obligations and/or rights consistent with this License.
169
+ However, in accepting such obligations, You may act only on Your
170
+ own behalf and on Your sole responsibility, not on behalf of any
171
+ other Contributor, and only if You agree to indemnify, defend,
172
+ and hold each Contributor harmless for any liability incurred by,
173
+ or claims asserted against, such Contributor by reason of your
174
+ accepting any such warranty or support.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Open Design contributors
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,28 @@
1
+ /**
2
+ * @module api-token-auth
3
+ *
4
+ * Whether a bearer-style API token gate should be enforced, and what the
5
+ * expected token value is. Generalized from an upstream flat daemon module:
6
+ * the origin hardcoded its host product's env-var names, now fields on
7
+ * {@link ApiTokenAuthEnvConfig} — see `source-map.md` for the exact mapping.
8
+ */
9
+ /** Names the env vars this port reads. */
10
+ export interface ApiTokenAuthEnvConfig {
11
+ /** Env var carrying the expected token value; unset/blank means no token is configured. */
12
+ tokenEnvVar: string;
13
+ /** Env var that, when truthy, force-disables the gate even if a token is configured. */
14
+ disableEnvVar: string;
15
+ }
16
+ /**
17
+ * Interprets `value` as a truthy flag: `'1'`, `'true'`, `'yes'`, or `'on'`
18
+ * (case-insensitive, trimmed). Anything else, including `undefined`, is
19
+ * falsy.
20
+ */
21
+ export declare function isTruthyEnvFlag(value: unknown): boolean;
22
+ /** Whether the API auth gate has been explicitly force-disabled. */
23
+ export declare function isApiAuthDisabled(config: ApiTokenAuthEnvConfig, env?: NodeJS.ProcessEnv): boolean;
24
+ /** The configured expected token value, trimmed; `''` when unset. */
25
+ export declare function apiTokenFromEnv(config: ApiTokenAuthEnvConfig, env?: NodeJS.ProcessEnv): string;
26
+ /** Whether the token gate should actually run: a token is configured and it hasn't been disabled. */
27
+ export declare function isApiTokenMiddlewareEnabled(config: ApiTokenAuthEnvConfig, env?: NodeJS.ProcessEnv): boolean;
28
+ //# sourceMappingURL=api-token-auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-token-auth.d.ts","sourceRoot":"","sources":["../src/api-token-auth.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,0CAA0C;AAC1C,MAAM,WAAW,qBAAqB;IACpC,2FAA2F;IAC3F,WAAW,EAAE,MAAM,CAAC;IACpB,wFAAwF;IACxF,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAGvD;AAED,oEAAoE;AACpE,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,qBAAqB,EAAE,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,OAAO,CAE9G;AAED,qEAAqE;AACrE,wBAAgB,eAAe,CAAC,MAAM,EAAE,qBAAqB,EAAE,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,MAAM,CAE3G;AAED,qGAAqG;AACrG,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,qBAAqB,EAC7B,GAAG,GAAE,MAAM,CAAC,UAAwB,GACnC,OAAO,CAET"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @module api-token-auth
3
+ *
4
+ * Whether a bearer-style API token gate should be enforced, and what the
5
+ * expected token value is. Generalized from an upstream flat daemon module:
6
+ * the origin hardcoded its host product's env-var names, now fields on
7
+ * {@link ApiTokenAuthEnvConfig} — see `source-map.md` for the exact mapping.
8
+ */
9
+ /**
10
+ * Interprets `value` as a truthy flag: `'1'`, `'true'`, `'yes'`, or `'on'`
11
+ * (case-insensitive, trimmed). Anything else, including `undefined`, is
12
+ * falsy.
13
+ */
14
+ export function isTruthyEnvFlag(value) {
15
+ const normalized = String(value || '').trim().toLowerCase();
16
+ return normalized === '1' || normalized === 'true' || normalized === 'yes' || normalized === 'on';
17
+ }
18
+ /** Whether the API auth gate has been explicitly force-disabled. */
19
+ export function isApiAuthDisabled(config, env = process.env) {
20
+ return isTruthyEnvFlag(env[config.disableEnvVar]);
21
+ }
22
+ /** The configured expected token value, trimmed; `''` when unset. */
23
+ export function apiTokenFromEnv(config, env = process.env) {
24
+ return (env[config.tokenEnvVar] ?? '').trim();
25
+ }
26
+ /** Whether the token gate should actually run: a token is configured and it hasn't been disabled. */
27
+ export function isApiTokenMiddlewareEnabled(config, env = process.env) {
28
+ return apiTokenFromEnv(config, env).length > 0 && !isApiAuthDisabled(config, env);
29
+ }
30
+ //# sourceMappingURL=api-token-auth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-token-auth.js","sourceRoot":"","sources":["../src/api-token-auth.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAUH;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,KAAc;IAC5C,MAAM,UAAU,GAAG,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IAC5D,OAAO,UAAU,KAAK,GAAG,IAAI,UAAU,KAAK,MAAM,IAAI,UAAU,KAAK,KAAK,IAAI,UAAU,KAAK,IAAI,CAAC;AACpG,CAAC;AAED,oEAAoE;AACpE,MAAM,UAAU,iBAAiB,CAAC,MAA6B,EAAE,MAAyB,OAAO,CAAC,GAAG;IACnG,OAAO,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC;AACpD,CAAC;AAED,qEAAqE;AACrE,MAAM,UAAU,eAAe,CAAC,MAA6B,EAAE,MAAyB,OAAO,CAAC,GAAG;IACjG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;AAChD,CAAC;AAED,qGAAqG;AACrG,MAAM,UAAU,2BAA2B,CACzC,MAA6B,EAC7B,MAAyB,OAAO,CAAC,GAAG;IAEpC,OAAO,eAAe,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,iBAAiB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AACpF,CAAC"}
@@ -0,0 +1,18 @@
1
+ import type { ManyToken, Token } from './token.js';
2
+ /**
3
+ * A typed binding set. `BoundIds` accumulates the literal union of bound
4
+ * token ids as `.bind`/`.bindMany` are chained, so `createDaemon` can check
5
+ * `Exclude<RequiredTokenIds<Packs>, BoundIds>` at compile time (see daemon.ts).
6
+ */
7
+ export declare class Bindings<BoundIds extends string = never> {
8
+ private readonly one;
9
+ private readonly many;
10
+ bind<T, Id extends string>(t: Token<T, Id>, impl: T): Bindings<BoundIds | Id>;
11
+ bindMany<T, Id extends string>(t: ManyToken<T, Id>, impl: T): Bindings<BoundIds | Id>;
12
+ /** @internal */
13
+ resolveOne<T>(t: Token<T, string>): T;
14
+ /** @internal */
15
+ resolveMany<T>(t: ManyToken<T, string>): T[];
16
+ }
17
+ export declare function bindings(): Bindings<never>;
18
+ //# sourceMappingURL=bindings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bindings.d.ts","sourceRoot":"","sources":["../src/bindings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAOnD;;;;GAIG;AACH,qBAAa,QAAQ,CAAC,QAAQ,SAAS,MAAM,GAAG,KAAK;IACnD,OAAO,CAAC,QAAQ,CAAC,GAAG,CAA+B;IACnD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAgC;IAErD,IAAI,CAAC,CAAC,EAAE,EAAE,SAAS,MAAM,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,QAAQ,CAAC,QAAQ,GAAG,EAAE,CAAC;IAQ7E,QAAQ,CAAC,CAAC,EAAE,EAAE,SAAS,MAAM,EAAE,CAAC,EAAE,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,QAAQ,CAAC,QAAQ,GAAG,EAAE,CAAC;IAOrF,gBAAgB;IAChB,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC;IAWrC,gBAAgB;IAChB,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE;CAG7C;AAED,wBAAgB,QAAQ,IAAI,QAAQ,CAAC,KAAK,CAAC,CAE1C"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * A typed binding set. `BoundIds` accumulates the literal union of bound
3
+ * token ids as `.bind`/`.bindMany` are chained, so `createDaemon` can check
4
+ * `Exclude<RequiredTokenIds<Packs>, BoundIds>` at compile time (see daemon.ts).
5
+ */
6
+ export class Bindings {
7
+ one = new Map();
8
+ many = new Map();
9
+ bind(t, impl) {
10
+ if (this.one.has(t.id)) {
11
+ throw new Error(`duplicate binding: ${t.id} is already bound (a singleton token accepts exactly one binding)`);
12
+ }
13
+ this.one.set(t.id, { value: impl, version: t.version });
14
+ return this;
15
+ }
16
+ bindMany(t, impl) {
17
+ const list = this.many.get(t.id) ?? [];
18
+ list.push(impl);
19
+ this.many.set(t.id, list);
20
+ return this;
21
+ }
22
+ /** @internal */
23
+ resolveOne(t) {
24
+ const entry = this.one.get(t.id);
25
+ if (!entry) {
26
+ throw new Error(`missing binding: ${t.id}`);
27
+ }
28
+ if (entry.version !== t.version) {
29
+ throw new Error(`version-incompatible binding: ${t.id} expects v${t.version}, got v${entry.version}`);
30
+ }
31
+ return entry.value;
32
+ }
33
+ /** @internal */
34
+ resolveMany(t) {
35
+ return (this.many.get(t.id) ?? []);
36
+ }
37
+ }
38
+ export function bindings() {
39
+ return new Bindings();
40
+ }
41
+ //# sourceMappingURL=bindings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bindings.js","sourceRoot":"","sources":["../src/bindings.ts"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,MAAM,OAAO,QAAQ;IACF,GAAG,GAAG,IAAI,GAAG,EAAoB,CAAC;IAClC,IAAI,GAAG,IAAI,GAAG,EAAqB,CAAC;IAErD,IAAI,CAAuB,CAAe,EAAE,IAAO;QACjD,IAAI,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;YACvB,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC,EAAE,mEAAmE,CAAC,CAAC;QACjH,CAAC;QACD,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;QACxD,OAAO,IAA0C,CAAC;IACpD,CAAC;IAED,QAAQ,CAAuB,CAAmB,EAAE,IAAO;QACzD,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC;QACvC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAChB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;QAC1B,OAAO,IAA0C,CAAC;IACpD,CAAC;IAED,gBAAgB;IAChB,UAAU,CAAI,CAAmB;QAC/B,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QACjC,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,MAAM,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC9C,CAAC;QACD,IAAI,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC;YAChC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,OAAO,UAAU,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;QACxG,CAAC;QACD,OAAO,KAAK,CAAC,KAAU,CAAC;IAC1B,CAAC;IAED,gBAAgB;IAChB,WAAW,CAAI,CAAuB;QACpC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,CAAQ,CAAC;IAC5C,CAAC;CACF;AAED,MAAM,UAAU,QAAQ;IACtB,OAAO,IAAI,QAAQ,EAAS,CAAC;AAC/B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=compose.typecheck.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compose.typecheck.d.ts","sourceRoot":"","sources":["../src/compose.typecheck.ts"],"names":[],"mappings":""}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Type-level proof for the compile-time half of createDaemon()'s gate
3
+ * (extraction-plan.md §2.2: "Exclude<RequiredTokenIds<packs>, BoundTokenIds<bindings>>
4
+ * must be never"). Not a runtime test — `tsc --noEmit` is the test runner here:
5
+ * if the `@ts-expect-error` line below ever stops erroring (e.g. the gate
6
+ * regresses to accepting an under-bound daemon), `tsc` fails on an unused
7
+ * `@ts-expect-error` directive, which fails `pnpm typecheck`.
8
+ */
9
+ import { bindings } from './bindings.js';
10
+ import { createDaemon } from './daemon.js';
11
+ import { definePack } from './pack.js';
12
+ import { token } from './token.js';
13
+ const RunStoreToken = token('jini.runStore');
14
+ const runsPack = definePack({
15
+ name: 'runs',
16
+ deps: [RunStoreToken],
17
+ services: (c) => c.get(RunStoreToken),
18
+ });
19
+ // @ts-expect-error — `jini.runStore` is required by `runsPack` but never bound.
20
+ createDaemon({
21
+ packs: [runsPack],
22
+ bindings: bindings(),
23
+ });
24
+ // The same daemon typechecks once the required token is bound.
25
+ createDaemon({
26
+ packs: [runsPack],
27
+ bindings: bindings().bind(RunStoreToken, { save: () => { } }),
28
+ });
29
+ //# sourceMappingURL=compose.typecheck.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compose.typecheck.js","sourceRoot":"","sources":["../src/compose.typecheck.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAMnC,MAAM,aAAa,GAAG,KAAK,CAAW,eAAe,CAAC,CAAC;AAEvD,MAAM,QAAQ,GAAG,UAAU,CAAC;IAC1B,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,CAAC,aAAa,CAAC;IACrB,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,aAAa,CAAC;CACtC,CAAC,CAAC;AAEH,gFAAgF;AAChF,YAAY,CAAC;IACX,KAAK,EAAE,CAAC,QAAQ,CAAC;IACjB,QAAQ,EAAE,QAAQ,EAAE;CACrB,CAAC,CAAC;AAEH,+DAA+D;AAC/D,YAAY,CAAC;IACX,KAAK,EAAE,CAAC,QAAQ,CAAC;IACjB,QAAQ,EAAE,QAAQ,EAAE,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,GAAE,CAAC,EAAE,CAAC;CAC7D,CAAC,CAAC"}
@@ -0,0 +1,40 @@
1
+ import type { Bindings } from './bindings.js';
2
+ import type { Pack } from './pack.js';
3
+ /**
4
+ * Exported (not just used locally) so `./internal.js` can re-derive `createDaemon`'s exact
5
+ * compile-time "missing binding" gate for a wrapper composition function (today:
6
+ * `@jini-ai/node-host`'s `createLocalNodeDaemon`) without duplicating the type-level logic. Not
7
+ * re-exported from `index.ts` — see `./internal.ts`'s module doc for why this stays off the
8
+ * public surface (same boundary pattern as `tool-registry.ts`'s `getToolRegistration`).
9
+ */
10
+ export type AnyPack = Pack<any, any, string>;
11
+ export type RequiredTokenIds<Packs extends readonly AnyPack[]> = Packs[number]['deps'][number]['id'];
12
+ export type MissingTokenIds<Packs extends readonly AnyPack[], BoundIds extends string> = Exclude<RequiredTokenIds<Packs>, BoundIds>;
13
+ type ServicesOf<Packs extends readonly AnyPack[], Name extends string> = Extract<Packs[number], {
14
+ name: Name;
15
+ }> extends Pack<any, infer Services, any> ? Services : never;
16
+ export interface Daemon<Packs extends readonly AnyPack[] = readonly AnyPack[]> {
17
+ readonly services: {
18
+ [K in Packs[number]['name']]: ServicesOf<Packs, K>;
19
+ };
20
+ }
21
+ export interface DaemonConfig<Packs extends readonly AnyPack[], BoundIds extends string> {
22
+ packs: Packs;
23
+ bindings: Bindings<BoundIds>;
24
+ transports?: readonly unknown[];
25
+ }
26
+ /**
27
+ * Composes packs against a bound set of tokens. Compile-time: if any pack
28
+ * declares a dep whose id isn't in `BoundIds`, the config parameter widens to
29
+ * require an (unsatisfiable) `__missingBindings` property carrying the exact
30
+ * missing-id union, so the call site fails to typecheck with that union
31
+ * visible in the error. Runtime: `bindings.bind()` already rejects duplicate
32
+ * singletons and version mismatches at bind time; resolving here (eagerly,
33
+ * per pack, at compose time) surfaces "missing binding" even if the
34
+ * compile-time gate was bypassed with `any`.
35
+ */
36
+ export declare function createDaemon<const Packs extends readonly AnyPack[], BoundIds extends string>(config: DaemonConfig<Packs, BoundIds> & (MissingTokenIds<Packs, BoundIds> extends never ? unknown : {
37
+ readonly __missingBindings: MissingTokenIds<Packs, BoundIds>;
38
+ })): Daemon<Packs>;
39
+ export {};
40
+ //# sourceMappingURL=daemon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"daemon.d.ts","sourceRoot":"","sources":["../src/daemon.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,IAAI,EAAiB,MAAM,WAAW,CAAC;AAGrD;;;;;;GAMG;AACH,MAAM,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC;AAE7C,MAAM,MAAM,gBAAgB,CAAC,KAAK,SAAS,SAAS,OAAO,EAAE,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC;AAErG,MAAM,MAAM,eAAe,CAAC,KAAK,SAAS,SAAS,OAAO,EAAE,EAAE,QAAQ,SAAS,MAAM,IAAI,OAAO,CAC9F,gBAAgB,CAAC,KAAK,CAAC,EACvB,QAAQ,CACT,CAAC;AAEF,KAAK,UAAU,CAAC,KAAK,SAAS,SAAS,OAAO,EAAE,EAAE,IAAI,SAAS,MAAM,IAAI,OAAO,CAC9E,KAAK,CAAC,MAAM,CAAC,EACb;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,CACf,SAAS,IAAI,CAAC,GAAG,EAAE,MAAM,QAAQ,EAAE,GAAG,CAAC,GACpC,QAAQ,GACR,KAAK,CAAC;AAEV,MAAM,WAAW,MAAM,CAAC,KAAK,SAAS,SAAS,OAAO,EAAE,GAAG,SAAS,OAAO,EAAE;IAC3E,QAAQ,CAAC,QAAQ,EAAE;SAAG,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,GAAG,UAAU,CAAC,KAAK,EAAE,CAAC,CAAC;KAAE,CAAC;CAC3E;AAED,MAAM,WAAW,YAAY,CAAC,KAAK,SAAS,SAAS,OAAO,EAAE,EAAE,QAAQ,SAAS,MAAM;IACrF,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC7B,UAAU,CAAC,EAAE,SAAS,OAAO,EAAE,CAAC;CACjC;AAqBD;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,KAAK,CAAC,KAAK,SAAS,SAAS,OAAO,EAAE,EAAE,QAAQ,SAAS,MAAM,EAC1F,MAAM,EAAE,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,GACnC,CAAC,eAAe,CAAC,KAAK,EAAE,QAAQ,CAAC,SAAS,KAAK,GAC3C,OAAO,GACP;IAAE,QAAQ,CAAC,iBAAiB,EAAE,eAAe,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAA;CAAE,CAAC,GACtE,MAAM,CAAC,KAAK,CAAC,CAOf"}
package/dist/daemon.js ADDED
@@ -0,0 +1,37 @@
1
+ function makeContainer(pack, bound) {
2
+ const declaredIds = new Set(pack.deps.map((d) => d.id));
3
+ const guard = (id) => {
4
+ if (!declaredIds.has(id)) {
5
+ throw new Error(`pack "${pack.name}" resolved "${id}" without declaring it in deps`);
6
+ }
7
+ };
8
+ return {
9
+ get(t) {
10
+ guard(t.id);
11
+ return bound.resolveOne(t);
12
+ },
13
+ getMany(t) {
14
+ guard(t.id);
15
+ return bound.resolveMany(t);
16
+ },
17
+ };
18
+ }
19
+ /**
20
+ * Composes packs against a bound set of tokens. Compile-time: if any pack
21
+ * declares a dep whose id isn't in `BoundIds`, the config parameter widens to
22
+ * require an (unsatisfiable) `__missingBindings` property carrying the exact
23
+ * missing-id union, so the call site fails to typecheck with that union
24
+ * visible in the error. Runtime: `bindings.bind()` already rejects duplicate
25
+ * singletons and version mismatches at bind time; resolving here (eagerly,
26
+ * per pack, at compose time) surfaces "missing binding" even if the
27
+ * compile-time gate was bypassed with `any`.
28
+ */
29
+ export function createDaemon(config) {
30
+ const services = {};
31
+ for (const pack of config.packs) {
32
+ const container = makeContainer(pack, config.bindings);
33
+ services[pack.name] = pack.services(container);
34
+ }
35
+ return { services };
36
+ }
37
+ //# sourceMappingURL=daemon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"daemon.js","sourceRoot":"","sources":["../src/daemon.ts"],"names":[],"mappings":"AAqCA,SAAS,aAAa,CAAC,IAAa,EAAE,KAAoB;IACxD,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAA4B,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACnF,MAAM,KAAK,GAAG,CAAC,EAAU,EAAE,EAAE;QAC3B,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC;YACzB,MAAM,IAAI,KAAK,CAAC,SAAS,IAAI,CAAC,IAAI,eAAe,EAAE,gCAAgC,CAAC,CAAC;QACvF,CAAC;IACH,CAAC,CAAC;IACF,OAAO;QACL,GAAG,CAAI,CAAmB;YACxB,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;YACZ,OAAO,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QAC7B,CAAC;QACD,OAAO,CAAI,CAAuB;YAChC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;YACZ,OAAO,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;QAC9B,CAAC;KACF,CAAC;AACJ,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,YAAY,CAC1B,MAGuE;IAEvE,MAAM,QAAQ,GAA4B,EAAE,CAAC;IAC7C,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;QAChC,MAAM,SAAS,GAAG,aAAa,CAAC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;QACvD,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IACjD,CAAC;IACD,OAAO,EAAE,QAAQ,EAAmB,CAAC;AACvC,CAAC"}
@@ -0,0 +1,13 @@
1
+ export * from './token.js';
2
+ export * from './pack.js';
3
+ export * from './bindings.js';
4
+ export type { Daemon, DaemonConfig } from './daemon.js';
5
+ export { createDaemon } from './daemon.js';
6
+ export * from './redact.js';
7
+ export * from './api-token-auth.js';
8
+ export * from './origin-validation.js';
9
+ export * from './principal.js';
10
+ export type { AuthorizationDecision, RunRef, ToolAuthorizationContext, ToolDescriptor, ToolExecutionContext, ToolHandler, ToolPolicy, ToolRegistration, ToolRegistry, } from './tool-registry.js';
11
+ export { createToolRegistry } from './tool-registry.js';
12
+ export * from './tool-tokens.js';
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAI9B,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,YAAY,EACV,qBAAqB,EACrB,MAAM,EACN,wBAAwB,EACxB,cAAc,EACd,oBAAoB,EACpB,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,YAAY,GACb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,cAAc,kBAAkB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,11 @@
1
+ export * from './token.js';
2
+ export * from './pack.js';
3
+ export * from './bindings.js';
4
+ export { createDaemon } from './daemon.js';
5
+ export * from './redact.js';
6
+ export * from './api-token-auth.js';
7
+ export * from './origin-validation.js';
8
+ export * from './principal.js';
9
+ export { createToolRegistry } from './tool-registry.js';
10
+ export * from './tool-tokens.js';
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAK9B,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAY/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * @module @jini-ai/core/internal
3
+ *
4
+ * Package-internal entry point — NOT part of `@jini-ai/core`'s public
5
+ * contract. Two unrelated escape hatches live here, each for its own
6
+ * single intended consumer:
7
+ *
8
+ * - {@link getToolRegistration} so `@jini-ai/daemon`'s `ToolExecutor` can
9
+ * resolve a registered tool's full `{descriptor, handler, policy}`
10
+ * triple. This is the security-sensitive one: it is a runtime *value*
11
+ * export that returns live handler closures, and it is what the
12
+ * `ToolExecutor` authorization gate exists to guard.
13
+ * - `AnyPack`/`RequiredTokenIds`/`MissingTokenIds` so `@jini-ai/node-host`'s
14
+ * `createLocalNodeDaemon` can re-derive `createDaemon`'s exact
15
+ * compile-time "missing binding" gate on its own wrapper config type,
16
+ * instead of either duplicating the type-level logic or losing the
17
+ * compile-time check through the wrapper. These are `import type`-only —
18
+ * erased at build time, carry no runtime capability, and are not a
19
+ * security boundary the way {@link getToolRegistration} is.
20
+ *
21
+ * **Correction (2026-07-19 hardening pass):** a package.json `exports` map
22
+ * subpath is NOT a language-level or per-consumer access modifier — Node's
23
+ * module resolution will happily resolve `@jini-ai/core/internal` for *any*
24
+ * package that depends on `@jini-ai/core`, not just the intended consumer.
25
+ * Earlier revisions of this doc comment claimed this boundary was
26
+ * "enforced" by the exports map; that was inaccurate and left the leak
27
+ * undetected. The actual enforcement is `scripts/check-engine-boundaries.ts`'s
28
+ * rule forbidding any *value* import of `getToolRegistration` from
29
+ * `@jini-ai/core/internal` outside `packages/daemon/**` (type-only imports of
30
+ * the DI-token-derivation types remain unrestricted, since they carry no
31
+ * runtime capability). Until that guard is finished and wired into CI, this
32
+ * boundary is documentation-only — treat it as such.
33
+ */
34
+ export { getToolRegistration } from './tool-registry.js';
35
+ export type { AnyPack, MissingTokenIds, RequiredTokenIds } from './daemon.js';
36
+ //# sourceMappingURL=internal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../src/internal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,YAAY,EAAE,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * @module @jini-ai/core/internal
3
+ *
4
+ * Package-internal entry point — NOT part of `@jini-ai/core`'s public
5
+ * contract. Two unrelated escape hatches live here, each for its own
6
+ * single intended consumer:
7
+ *
8
+ * - {@link getToolRegistration} so `@jini-ai/daemon`'s `ToolExecutor` can
9
+ * resolve a registered tool's full `{descriptor, handler, policy}`
10
+ * triple. This is the security-sensitive one: it is a runtime *value*
11
+ * export that returns live handler closures, and it is what the
12
+ * `ToolExecutor` authorization gate exists to guard.
13
+ * - `AnyPack`/`RequiredTokenIds`/`MissingTokenIds` so `@jini-ai/node-host`'s
14
+ * `createLocalNodeDaemon` can re-derive `createDaemon`'s exact
15
+ * compile-time "missing binding" gate on its own wrapper config type,
16
+ * instead of either duplicating the type-level logic or losing the
17
+ * compile-time check through the wrapper. These are `import type`-only —
18
+ * erased at build time, carry no runtime capability, and are not a
19
+ * security boundary the way {@link getToolRegistration} is.
20
+ *
21
+ * **Correction (2026-07-19 hardening pass):** a package.json `exports` map
22
+ * subpath is NOT a language-level or per-consumer access modifier — Node's
23
+ * module resolution will happily resolve `@jini-ai/core/internal` for *any*
24
+ * package that depends on `@jini-ai/core`, not just the intended consumer.
25
+ * Earlier revisions of this doc comment claimed this boundary was
26
+ * "enforced" by the exports map; that was inaccurate and left the leak
27
+ * undetected. The actual enforcement is `scripts/check-engine-boundaries.ts`'s
28
+ * rule forbidding any *value* import of `getToolRegistration` from
29
+ * `@jini-ai/core/internal` outside `packages/daemon/**` (type-only imports of
30
+ * the DI-token-derivation types remain unrestricted, since they carry no
31
+ * runtime capability). Until that guard is finished and wired into CI, this
32
+ * boundary is documentation-only — treat it as such.
33
+ */
34
+ export { getToolRegistration } from './tool-registry.js';
35
+ //# sourceMappingURL=internal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internal.js","sourceRoot":"","sources":["../src/internal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC"}