@molecule/api-ai-decisions-jev 1.0.1 → 1.1.1
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 +111 -24
- package/README.md +66 -53
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/provider.d.ts.map +1 -1
- package/dist/provider.js +3 -0
- package/dist/provider.js.map +1 -1
- package/dist/types.d.ts +7 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/wire.d.ts +2 -0
- package/dist/wire.d.ts.map +1 -1
- package/dist/wire.js +2 -0
- package/dist/wire.js.map +1 -1
- package/package.json +4 -4
package/LICENSE
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
|
|
1
2
|
Apache License
|
|
2
3
|
Version 2.0, January 2004
|
|
3
4
|
http://www.apache.org/licenses/
|
|
@@ -34,21 +35,33 @@
|
|
|
34
35
|
|
|
35
36
|
"Work" shall mean the work of authorship, whether in Source or
|
|
36
37
|
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
38
40
|
|
|
39
41
|
"Derivative Works" shall mean any work, whether in Source or Object
|
|
40
42
|
form, that is based on (or derived from) the Work and for which the
|
|
41
43
|
editorial revisions, annotations, elaborations, or other modifications
|
|
42
|
-
represent, as a whole, an original work of authorship.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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."
|
|
49
62
|
|
|
50
63
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
51
|
-
on behalf of whom a Contribution has been received by
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
52
65
|
subsequently incorporated within the Work.
|
|
53
66
|
|
|
54
67
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
@@ -61,8 +74,18 @@
|
|
|
61
74
|
3. Grant of Patent License. Subject to the terms and conditions of
|
|
62
75
|
this License, each Contributor hereby grants to You a perpetual,
|
|
63
76
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
64
|
-
|
|
65
|
-
and otherwise transfer the Work
|
|
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.
|
|
66
89
|
|
|
67
90
|
4. Redistribution. You may reproduce and distribute copies of the
|
|
68
91
|
Work or Derivative Works thereof in any medium, with or without
|
|
@@ -84,23 +107,87 @@
|
|
|
84
107
|
(d) If the Work includes a "NOTICE" text file as part of its
|
|
85
108
|
distribution, then any Derivative Works that You distribute must
|
|
86
109
|
include a readable copy of the attribution notices contained
|
|
87
|
-
within such NOTICE file
|
|
88
|
-
|
|
89
|
-
|
|
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.
|
|
90
138
|
|
|
91
139
|
6. Trademarks. This License does not grant permission to use the trade
|
|
92
|
-
names, trademarks, service marks, or product names of the Licensor
|
|
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.
|
|
93
143
|
|
|
94
144
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
95
|
-
agreed to in writing, Licensor provides the Work
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
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 [yyyy] [name of copyright owner]
|
|
104
191
|
|
|
105
192
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
106
193
|
you may not use this file except in compliance with the License.
|
package/README.md
CHANGED
|
@@ -3,15 +3,11 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
|
|
|
3
3
|
Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
|
|
4
4
|
Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
|
|
5
5
|
To change this document, edit the module-level JSDoc in src/index.ts.
|
|
6
|
-
Generated: 2026-
|
|
6
|
+
Generated: 2026-10-16T23:28:11.973Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/api-ai-decisions-jev
|
|
10
10
|
|
|
11
|
-
> **Auto-generated, AI-first package reference** for the [molecule.dev](https://molecule.dev) ecosystem.
|
|
12
|
-
> It is written to be read by coding agents as much as by people, and is generated from this
|
|
13
|
-
> package's source — edit `src/index.ts` JSDoc, not this file.
|
|
14
|
-
|
|
15
11
|
Jev decisions provider for molecule.dev — typed decisions from TypeSafe AI's
|
|
16
12
|
hosted Jev "System One" model.
|
|
17
13
|
|
|
@@ -21,6 +17,10 @@ probability distribution instead of generated text. This bond calls
|
|
|
21
17
|
The open-weights Laya server speaks the same protocol, so
|
|
22
18
|
`@molecule/api-ai-decisions-laya` is a drop-in self-hosted swap.
|
|
23
19
|
|
|
20
|
+
> **Auto-generated, AI-first package reference** for the [molecule.dev](https://molecule.dev) ecosystem.
|
|
21
|
+
> It is written to be read by coding agents as much as by people, and is generated from this
|
|
22
|
+
> package's source — edit `src/index.ts` JSDoc, not this file.
|
|
23
|
+
|
|
24
24
|
## Quick Start
|
|
25
25
|
|
|
26
26
|
```typescript
|
|
@@ -66,6 +66,13 @@ Configuration for the Jev decisions provider.
|
|
|
66
66
|
interface JevConfig {
|
|
67
67
|
/** TypeSafe API key. Defaults to the `TYPESAFE_API_KEY` env var (the name TypeSafe's own SDKs read). */
|
|
68
68
|
apiKey?: string
|
|
69
|
+
/**
|
|
70
|
+
* Extra request headers, resolved before each call and merged over the
|
|
71
|
+
* defaults — for a host whose auth expires or is not a bearer token (a Cloud
|
|
72
|
+
* Run ID token, Modal proxy auth). Pair with `@molecule/api-model-hosting`:
|
|
73
|
+
* `headers: () => hosting.authHeaders(endpoint.id)`.
|
|
74
|
+
*/
|
|
75
|
+
headers?: () => Record<string, string> | Promise<Record<string, string>>
|
|
69
76
|
/**
|
|
70
77
|
* API base URL. Defaults to `TYPESAFE_BASE_URL`, then `https://api.typesafe.ai`.
|
|
71
78
|
* Point it at a gateway that relays `/v1/systemone` (or at a `laya-serve`
|
|
@@ -77,24 +84,15 @@ interface JevConfig {
|
|
|
77
84
|
}
|
|
78
85
|
```
|
|
79
86
|
|
|
80
|
-
#### `
|
|
87
|
+
#### `WireQuestion`
|
|
81
88
|
|
|
82
|
-
|
|
89
|
+
One question as sent on the wire.
|
|
83
90
|
|
|
84
91
|
```typescript
|
|
85
|
-
interface
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
apiKey?: string
|
|
90
|
-
/** Request body. */
|
|
91
|
-
body: Record<string, unknown>
|
|
92
|
-
/** Abort signal. */
|
|
93
|
-
signal?: AbortSignal
|
|
94
|
-
/** Label for error messages (`'Laya'`, `'Jev'`). */
|
|
95
|
-
label: string
|
|
96
|
-
/** Max retries on a retryable status (default 3). */
|
|
97
|
-
maxRetries?: number
|
|
92
|
+
interface WireQuestion {
|
|
93
|
+
type: 'choice' | 'score' | 'noul'
|
|
94
|
+
instructions: string
|
|
95
|
+
criteria?: Record<string, string> | string[]
|
|
98
96
|
}
|
|
99
97
|
```
|
|
100
98
|
|
|
@@ -112,18 +110,6 @@ interface WireAnswer {
|
|
|
112
110
|
}
|
|
113
111
|
```
|
|
114
112
|
|
|
115
|
-
#### `WireQuestion`
|
|
116
|
-
|
|
117
|
-
One question as sent on the wire.
|
|
118
|
-
|
|
119
|
-
```typescript
|
|
120
|
-
interface WireQuestion {
|
|
121
|
-
type: 'choice' | 'score' | 'noul'
|
|
122
|
-
instructions: string
|
|
123
|
-
criteria?: Record<string, string> | string[]
|
|
124
|
-
}
|
|
125
|
-
```
|
|
126
|
-
|
|
127
113
|
#### `WireResponse`
|
|
128
114
|
|
|
129
115
|
The response body (only the fields we read).
|
|
@@ -136,6 +122,29 @@ interface WireResponse {
|
|
|
136
122
|
}
|
|
137
123
|
```
|
|
138
124
|
|
|
125
|
+
#### `PostOptions`
|
|
126
|
+
|
|
127
|
+
Options for {@link postSystemOne}.
|
|
128
|
+
|
|
129
|
+
```typescript
|
|
130
|
+
interface PostOptions {
|
|
131
|
+
/** Full endpoint URL. */
|
|
132
|
+
url: string
|
|
133
|
+
/** Bearer token, if any. */
|
|
134
|
+
apiKey?: string
|
|
135
|
+
/** Extra headers resolved before the request (merged over the defaults). */
|
|
136
|
+
headers?: () => Record<string, string> | Promise<Record<string, string>>
|
|
137
|
+
/** Request body. */
|
|
138
|
+
body: Record<string, unknown>
|
|
139
|
+
/** Abort signal. */
|
|
140
|
+
signal?: AbortSignal
|
|
141
|
+
/** Label for error messages (`'Laya'`, `'Jev'`). */
|
|
142
|
+
label: string
|
|
143
|
+
/** Max retries on a retryable status (default 3). */
|
|
144
|
+
maxRetries?: number
|
|
145
|
+
}
|
|
146
|
+
```
|
|
147
|
+
|
|
139
148
|
### Functions
|
|
140
149
|
|
|
141
150
|
#### `createProvider(config)`
|
|
@@ -150,6 +159,18 @@ function createProvider(config?: JevConfig): AIDecisionsProvider
|
|
|
150
159
|
|
|
151
160
|
**Returns:** An `AIDecisionsProvider` backed by TypeSafe's Jev API.
|
|
152
161
|
|
|
162
|
+
#### `toWireQuestions(questions)`
|
|
163
|
+
|
|
164
|
+
Converts the core's questions into wire questions (`yesNo` → `noul`).
|
|
165
|
+
|
|
166
|
+
```typescript
|
|
167
|
+
function toWireQuestions(questions: Record<string, DecisionQuestion>): Record<string, WireQuestion>
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
- `questions` — The questions keyed by id.
|
|
171
|
+
|
|
172
|
+
**Returns:** The wire `questions` object.
|
|
173
|
+
|
|
153
174
|
#### `fromWireAnswer(id, question, wire, minConfidence)`
|
|
154
175
|
|
|
155
176
|
Converts one wire answer into the core's answer for `question`.
|
|
@@ -197,26 +218,14 @@ function postSystemOne(opts: PostOptions): Promise<WireResponse>
|
|
|
197
218
|
|
|
198
219
|
**Returns:** The parsed response body.
|
|
199
220
|
|
|
200
|
-
#### `toWireQuestions(questions)`
|
|
201
|
-
|
|
202
|
-
Converts the core's questions into wire questions (`yesNo` → `noul`).
|
|
203
|
-
|
|
204
|
-
```typescript
|
|
205
|
-
function toWireQuestions(questions: Record<string, DecisionQuestion>): Record<string, WireQuestion>
|
|
206
|
-
```
|
|
207
|
-
|
|
208
|
-
- `questions` — The questions keyed by id.
|
|
209
|
-
|
|
210
|
-
**Returns:** The wire `questions` object.
|
|
211
|
-
|
|
212
221
|
### Constants
|
|
213
222
|
|
|
214
|
-
#### `
|
|
223
|
+
#### `DEFAULT_JEV_URL`
|
|
215
224
|
|
|
216
|
-
|
|
225
|
+
TypeSafe's API host.
|
|
217
226
|
|
|
218
227
|
```typescript
|
|
219
|
-
const
|
|
228
|
+
const DEFAULT_JEV_URL: 'https://api.typesafe.ai'
|
|
220
229
|
```
|
|
221
230
|
|
|
222
231
|
#### `DEFAULT_JEV_MODEL`
|
|
@@ -227,20 +236,20 @@ TypeSafe's flagship model id.
|
|
|
227
236
|
const DEFAULT_JEV_MODEL: 'jev-latest'
|
|
228
237
|
```
|
|
229
238
|
|
|
230
|
-
#### `
|
|
239
|
+
#### `provider`
|
|
231
240
|
|
|
232
|
-
|
|
241
|
+
The provider implementation — lazy, so env vars are read on first use.
|
|
233
242
|
|
|
234
243
|
```typescript
|
|
235
|
-
const
|
|
244
|
+
const provider: AIDecisionsProvider
|
|
236
245
|
```
|
|
237
246
|
|
|
238
|
-
#### `
|
|
247
|
+
#### `aiDecisionsJevSecretDefinitions`
|
|
239
248
|
|
|
240
|
-
|
|
249
|
+
Secret definitions required by the Jev decisions bond.
|
|
241
250
|
|
|
242
251
|
```typescript
|
|
243
|
-
const
|
|
252
|
+
const aiDecisionsJevSecretDefinitions: SecretDefinition[]
|
|
244
253
|
```
|
|
245
254
|
|
|
246
255
|
## Core Interface
|
|
@@ -295,6 +304,10 @@ Peer dependencies:
|
|
|
295
304
|
data that must stay in your environment, bond the Laya provider instead.
|
|
296
305
|
- `confidence` in the answers is the probability of the reported answer,
|
|
297
306
|
NOT Jev's own `confidence` field (see the core's remarks).
|
|
307
|
+
- **Hosted on rented compute?** Pass `headers: () => hosting.authHeaders(endpoint.id)`
|
|
308
|
+
(`@molecule/api-model-hosting`) when the host's auth expires or is not a
|
|
309
|
+
bearer token — e.g. a Cloud Run ID token or Modal proxy auth. It runs before
|
|
310
|
+
every request and is merged over the defaults.
|
|
298
311
|
- Use the core's `setProvider`, not `bond('ai-decisions', …)` directly.
|
|
299
312
|
|
|
300
313
|
## E2E Tests
|
package/dist/index.d.ts
CHANGED
|
@@ -41,6 +41,10 @@
|
|
|
41
41
|
* data that must stay in your environment, bond the Laya provider instead.
|
|
42
42
|
* - `confidence` in the answers is the probability of the reported answer,
|
|
43
43
|
* NOT Jev's own `confidence` field (see the core's remarks).
|
|
44
|
+
* - **Hosted on rented compute?** Pass `headers: () => hosting.authHeaders(endpoint.id)`
|
|
45
|
+
* (`@molecule/api-model-hosting`) when the host's auth expires or is not a
|
|
46
|
+
* bearer token — e.g. a Cloud Run ID token or Modal proxy auth. It runs before
|
|
47
|
+
* every request and is merged over the defaults.
|
|
44
48
|
* - Use the core's `setProvider`, not `bond('ai-decisions', …)` directly.
|
|
45
49
|
*
|
|
46
50
|
* @module
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AAEH,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -41,6 +41,10 @@
|
|
|
41
41
|
* data that must stay in your environment, bond the Laya provider instead.
|
|
42
42
|
* - `confidence` in the answers is the probability of the reported answer,
|
|
43
43
|
* NOT Jev's own `confidence` field (see the core's remarks).
|
|
44
|
+
* - **Hosted on rented compute?** Pass `headers: () => hosting.authHeaders(endpoint.id)`
|
|
45
|
+
* (`@molecule/api-model-hosting`) when the host's auth expires or is not a
|
|
46
|
+
* bearer token — e.g. a Cloud Run ID token or Modal proxy auth. It runs before
|
|
47
|
+
* every request and is merged over the defaults.
|
|
44
48
|
* - Use the core's `setProvider`, not `bond('ai-decisions', …)` directly.
|
|
45
49
|
*
|
|
46
50
|
* @module
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AAEH,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA"}
|
package/dist/provider.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,cAAc,CAAA;AAErB,OAAO,KAAK,EACV,mBAAmB,EAIpB,MAAM,4BAA4B,CAAA;AAEnC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAG3C,2BAA2B;AAC3B,eAAO,MAAM,eAAe,4BAA4B,CAAA;AACxD,oCAAoC;AACpC,eAAO,MAAM,iBAAiB,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,cAAc,CAAA;AAErB,OAAO,KAAK,EACV,mBAAmB,EAIpB,MAAM,4BAA4B,CAAA;AAEnC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAG3C,2BAA2B;AAC3B,eAAO,MAAM,eAAe,4BAA4B,CAAA;AACxD,oCAAoC;AACpC,eAAO,MAAM,iBAAiB,eAAe,CAAA;AAqE7C;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,MAAM,CAAC,EAAE,SAAS,GAAG,mBAAmB,CAEtE;AAGD;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,mBASrB,CAAA"}
|
package/dist/provider.js
CHANGED
|
@@ -19,6 +19,7 @@ class JevDecisionsProvider {
|
|
|
19
19
|
name = 'jev';
|
|
20
20
|
baseUrl;
|
|
21
21
|
apiKey;
|
|
22
|
+
headers;
|
|
22
23
|
model;
|
|
23
24
|
/**
|
|
24
25
|
* Creates the provider.
|
|
@@ -28,6 +29,7 @@ class JevDecisionsProvider {
|
|
|
28
29
|
constructor(config = {}) {
|
|
29
30
|
this.baseUrl = (config.baseUrl || process.env.TYPESAFE_BASE_URL || DEFAULT_JEV_URL).replace(/\/+$/, '');
|
|
30
31
|
this.apiKey = config.apiKey ?? (process.env.TYPESAFE_API_KEY || undefined);
|
|
32
|
+
this.headers = config.headers;
|
|
31
33
|
this.model = config.model ?? DEFAULT_JEV_MODEL;
|
|
32
34
|
}
|
|
33
35
|
/**
|
|
@@ -52,6 +54,7 @@ class JevDecisionsProvider {
|
|
|
52
54
|
const body = await postSystemOne({
|
|
53
55
|
url: `${this.baseUrl}/v1/systemone`,
|
|
54
56
|
apiKey: this.apiKey,
|
|
57
|
+
headers: this.headers,
|
|
55
58
|
body: {
|
|
56
59
|
model: input.model ?? this.model,
|
|
57
60
|
state: input.state,
|
package/dist/provider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,gEAAgE;AAChE,OAAO,cAAc,CAAA;AAUrB,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAE5E,2BAA2B;AAC3B,MAAM,CAAC,MAAM,eAAe,GAAG,yBAAyB,CAAA;AACxD,oCAAoC;AACpC,MAAM,CAAC,MAAM,iBAAiB,GA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,CAAC,SAAS,EAAE,IAAI,EAAE,KAAK,CAAC,CAAA;IAC5C,CAAC;CACF,CAAC,CAAA"}
|
package/dist/types.d.ts
CHANGED
|
@@ -9,6 +9,13 @@
|
|
|
9
9
|
export interface JevConfig {
|
|
10
10
|
/** TypeSafe API key. Defaults to the `TYPESAFE_API_KEY` env var (the name TypeSafe's own SDKs read). */
|
|
11
11
|
apiKey?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Extra request headers, resolved before each call and merged over the
|
|
14
|
+
* defaults — for a host whose auth expires or is not a bearer token (a Cloud
|
|
15
|
+
* Run ID token, Modal proxy auth). Pair with `@molecule/api-model-hosting`:
|
|
16
|
+
* `headers: () => hosting.authHeaders(endpoint.id)`.
|
|
17
|
+
*/
|
|
18
|
+
headers?: () => Record<string, string> | Promise<Record<string, string>>;
|
|
12
19
|
/**
|
|
13
20
|
* API base URL. Defaults to `TYPESAFE_BASE_URL`, then `https://api.typesafe.ai`.
|
|
14
21
|
* Point it at a gateway that relays `/v1/systemone` (or at a `laya-serve`
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,wGAAwG;IACxG,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,oDAAoD;IACpD,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,wGAAwG;IACxG,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;IACxE;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,oDAAoD;IACpD,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
|
package/dist/wire.d.ts
CHANGED
|
@@ -69,6 +69,8 @@ export interface PostOptions {
|
|
|
69
69
|
url: string;
|
|
70
70
|
/** Bearer token, if any. */
|
|
71
71
|
apiKey?: string;
|
|
72
|
+
/** Extra headers resolved before the request (merged over the defaults). */
|
|
73
|
+
headers?: () => Record<string, string> | Promise<Record<string, string>>;
|
|
72
74
|
/** Request body. */
|
|
73
75
|
body: Record<string, unknown>;
|
|
74
76
|
/** Abort signal. */
|
package/dist/wire.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wire.d.ts","sourceRoot":"","sources":["../src/wire.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAEV,YAAY,EACZ,cAAc,EACd,gBAAgB,EAGjB,MAAM,4BAA4B,CAAA;AAEnC,wCAAwC;AACxC,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAA;IACjC,YAAY,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,EAAE,CAAA;CAC7C;AAED,oEAAoE;AACpE,MAAM,WAAW,UAAU;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACvC;AAED,mDAAmD;AACnD,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,MAAM,CAA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AAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,EACzE,SAAS,EAAE,CAAC,EACZ,IAAI,EAAE,YAAY,EAClB,aAAa,CAAC,EAAE,MAAM,GACrB,YAAY,CAAC,CAAC,CAAC,CAiBjB;AAKD,yCAAyC;AACzC,MAAM,WAAW,WAAW;IAC1B,yBAAyB;IACzB,GAAG,EAAE,MAAM,CAAA;IACX,4BAA4B;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,4EAA4E;IAC5E,OAAO,CAAC,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;IACxE,oBAAoB;IACpB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC7B,oBAAoB;IACpB,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,oDAAoD;IACpD,KAAK,EAAE,MAAM,CAAA;IACb,qDAAqD;IACrD,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED;;;;;;GAMG;AACH,wBAAsB,aAAa,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC,CAsC5E"}
|
package/dist/wire.js
CHANGED
|
@@ -151,6 +151,8 @@ export async function postSystemOne(opts) {
|
|
|
151
151
|
const headers = { 'content-type': 'application/json' };
|
|
152
152
|
if (apiKey)
|
|
153
153
|
headers.authorization = `Bearer ${apiKey}`;
|
|
154
|
+
if (opts.headers)
|
|
155
|
+
Object.assign(headers, await opts.headers());
|
|
154
156
|
for (let attempt = 0;; attempt++) {
|
|
155
157
|
const response = await fetch(url, {
|
|
156
158
|
method: 'POST',
|
package/dist/wire.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wire.js","sourceRoot":"","sources":["../src/wire.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAkCH;;;;;GAKG;AACH,MAAM,UA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C,MAAM,EAAE,CAAA;QACpF,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAwD,CAAA;YACtF,IAAI,OAAO,MAAM,CAAC,MAAM,KAAK,QAAQ;gBAAE,MAAM,GAAG,MAAM,CAAC,MAAM,CAAA;iBACxD,IAAI,OAAO,MAAM,CAAC,KAAK,EAAE,OAAO,KAAK,QAAQ;gBAAE,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,OAAO,CAAA;QACnF,CAAC;QAAC,OAAO,MAAM,EAAE,CAAC;YAChB,8DAA8D;QAChE,CAAC;QACD,MAAM,MAAM,CAAC,MAAM,CACjB,IAAI,KAAK,CAAC,GAAG,KAAK,6BAA6B,QAAQ,CAAC,MAAM,MAAM,MAAM,EAAE,CAAC,EAC7E;YACE,MAAM,EAAE,QAAQ,CAAC,MAAM;SACxB,CACF,CAAA;IACH,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/api-ai-decisions-jev",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Jev decisions provider for molecule.dev — typed choice/score/yes-no answers from TypeSafe's hosted Jev System One API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"@molecule/api-secrets": "^1.0.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@molecule/api-ai-decisions": "1.1.
|
|
37
|
+
"@molecule/api-ai-decisions": "1.1.2",
|
|
38
38
|
"@molecule/api-secrets": "1.0.2",
|
|
39
|
-
"@types/node": "26.
|
|
39
|
+
"@types/node": "26.6.5",
|
|
40
40
|
"typescript": "6.0.3",
|
|
41
|
-
"vitest": "4.1.
|
|
41
|
+
"vitest": "4.1.12"
|
|
42
42
|
},
|
|
43
43
|
"repository": {
|
|
44
44
|
"type": "git",
|