@molecule/api-ai-moonshot 1.1.3 → 1.1.7
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 +10 -10
- package/dist/provider.d.ts.map +1 -1
- package/dist/provider.js +52 -6
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +5 -5
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,17 +3,17 @@ 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-10-
|
|
6
|
+
Generated: 2026-10-23T20:52:04.229Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/api-ai-moonshot
|
|
10
10
|
|
|
11
|
+
Moonshot (Kimi) AI provider for molecule.dev.
|
|
12
|
+
|
|
11
13
|
> **Auto-generated, AI-first package reference** for the [molecule.dev](https://molecule.dev) ecosystem.
|
|
12
14
|
> It is written to be read by coding agents as much as by people, and is generated from this
|
|
13
15
|
> package's source — edit `src/index.ts` JSDoc, not this file.
|
|
14
16
|
|
|
15
|
-
Moonshot (Kimi) AI provider for molecule.dev.
|
|
16
|
-
|
|
17
17
|
## Quick Start
|
|
18
18
|
|
|
19
19
|
```typescript
|
|
@@ -56,7 +56,7 @@ Configuration for Moonshot.
|
|
|
56
56
|
interface MoonshotConfig {
|
|
57
57
|
/** API key. Defaults to MOONSHOT_API_KEY env var. */
|
|
58
58
|
apiKey?: string
|
|
59
|
-
/** Default model. Defaults to 'kimi-k3'. */
|
|
59
|
+
/** Default model. Defaults to 'kimi-k3.1-pro-highspeed'. */
|
|
60
60
|
defaultModel?: string
|
|
61
61
|
/** Maximum tokens for completions. */
|
|
62
62
|
maxTokens?: number
|
|
@@ -113,20 +113,20 @@ function createProvider(config?: MoonshotConfig): AIProvider
|
|
|
113
113
|
|
|
114
114
|
### Constants
|
|
115
115
|
|
|
116
|
-
#### `
|
|
116
|
+
#### `provider`
|
|
117
117
|
|
|
118
|
-
|
|
118
|
+
The provider implementation.
|
|
119
119
|
|
|
120
120
|
```typescript
|
|
121
|
-
const
|
|
121
|
+
const provider: AIProvider
|
|
122
122
|
```
|
|
123
123
|
|
|
124
|
-
#### `
|
|
124
|
+
#### `aiMoonshotSecretDefinitions`
|
|
125
125
|
|
|
126
|
-
|
|
126
|
+
Secret definitions required by the Moonshot AI bond.
|
|
127
127
|
|
|
128
128
|
```typescript
|
|
129
|
-
const
|
|
129
|
+
const aiMoonshotSecretDefinitions: SecretDefinition[]
|
|
130
130
|
```
|
|
131
131
|
|
|
132
132
|
## Core Interface
|
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;
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EACV,UAAU,EAQX,MAAM,kBAAkB,CAAA;AASzB,OAAO,cAAc,CAAA;AAErB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAgtBhD;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,MAAM,CAAC,EAAE,cAAc,GAAG,UAAU,CAElE"}
|
package/dist/provider.js
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @module
|
|
7
7
|
*/
|
|
8
|
+
import { randomUUID } from 'node:crypto';
|
|
8
9
|
import { getLogger } from '@molecule/api-bond';
|
|
9
10
|
import { t } from '@molecule/api-i18n';
|
|
10
11
|
const logger = getLogger();
|
|
@@ -37,7 +38,7 @@ class MoonshotAIProvider {
|
|
|
37
38
|
onRateLimit;
|
|
38
39
|
constructor(config = {}) {
|
|
39
40
|
this.apiKey = config.apiKey ?? process.env.MOONSHOT_API_KEY ?? '';
|
|
40
|
-
this.defaultModel = config.defaultModel ?? 'kimi-k3';
|
|
41
|
+
this.defaultModel = config.defaultModel ?? 'kimi-k3.1-pro-highspeed';
|
|
41
42
|
this.maxTokens = config.maxTokens ?? 4096;
|
|
42
43
|
this.baseUrl = config.baseUrl ?? process.env.MOONSHOT_BASE_URL ?? 'https://api.moonshot.ai';
|
|
43
44
|
this.completionsPath =
|
|
@@ -143,9 +144,17 @@ class MoonshotAIProvider {
|
|
|
143
144
|
if (params.temperature !== undefined) {
|
|
144
145
|
body.temperature = params.temperature;
|
|
145
146
|
}
|
|
147
|
+
// Per-call correlation (see ChatParams.requestId): a header rather than the
|
|
148
|
+
// body's `user`, which is the stable per-account abuse-attribution value.
|
|
149
|
+
const requestId = params.requestId ?? randomUUID();
|
|
150
|
+
const call = {
|
|
151
|
+
meta: { requestId, endpoint: `${this.baseUrl}${this.completionsPath}` },
|
|
152
|
+
endUserId: params.endUserId,
|
|
153
|
+
};
|
|
146
154
|
const headers = {
|
|
147
155
|
'Content-Type': 'application/json',
|
|
148
156
|
Authorization: `Bearer ${this.apiKey}`,
|
|
157
|
+
'X-Mol-Request-Id': requestId,
|
|
149
158
|
};
|
|
150
159
|
// Kimi with reasoning enabled (especially on large multimodal/vision
|
|
151
160
|
// prompts) regularly takes longer than 5 minutes to finish a streaming
|
|
@@ -248,7 +257,15 @@ class MoonshotAIProvider {
|
|
|
248
257
|
yield* this.parseNonStreamingResponse(data);
|
|
249
258
|
return;
|
|
250
259
|
}
|
|
251
|
-
|
|
260
|
+
// Whatever the transport exposes about this call — the handle a vendor
|
|
261
|
+
// investigation needs.
|
|
262
|
+
const traceId = response.headers.get('x-request-id') ??
|
|
263
|
+
response.headers.get('request-id') ??
|
|
264
|
+
response.headers.get('x-ds-trace-id') ??
|
|
265
|
+
undefined;
|
|
266
|
+
if (traceId)
|
|
267
|
+
call.meta.traceId = traceId;
|
|
268
|
+
yield* this.parseStreamingResponse(response, call);
|
|
252
269
|
}
|
|
253
270
|
/**
|
|
254
271
|
* Converts internal `ChatMessage` objects to the OpenAI-compatible message format.
|
|
@@ -427,7 +444,7 @@ class MoonshotAIProvider {
|
|
|
427
444
|
* @param response - The fetch Response with an SSE body stream.
|
|
428
445
|
* @yields {ChatEvent} Chat events as they arrive from the SSE stream.
|
|
429
446
|
*/
|
|
430
|
-
async *parseStreamingResponse(response) {
|
|
447
|
+
async *parseStreamingResponse(response, call) {
|
|
431
448
|
const reader = response.body?.getReader();
|
|
432
449
|
if (!reader) {
|
|
433
450
|
yield {
|
|
@@ -451,7 +468,7 @@ class MoonshotAIProvider {
|
|
|
451
468
|
const lines = buffer.split('\n');
|
|
452
469
|
buffer = lines.pop() ?? '';
|
|
453
470
|
let yieldedContent = false;
|
|
454
|
-
for (const event of this.processSSELines(lines, pendingTools, state)) {
|
|
471
|
+
for (const event of this.processSSELines(lines, pendingTools, state, call)) {
|
|
455
472
|
yieldedContent = true;
|
|
456
473
|
yield event;
|
|
457
474
|
if (event.type === 'error')
|
|
@@ -466,7 +483,7 @@ class MoonshotAIProvider {
|
|
|
466
483
|
}
|
|
467
484
|
// Flush any remaining data in the buffer after EOF
|
|
468
485
|
if (buffer.trim()) {
|
|
469
|
-
for (const event of this.processSSELines(buffer.split('\n'), pendingTools, state)) {
|
|
486
|
+
for (const event of this.processSSELines(buffer.split('\n'), pendingTools, state, call)) {
|
|
470
487
|
yield event;
|
|
471
488
|
if (event.type === 'error')
|
|
472
489
|
return;
|
|
@@ -499,6 +516,7 @@ class MoonshotAIProvider {
|
|
|
499
516
|
outputTokens: state.outputTokens,
|
|
500
517
|
...(state.cacheReadTokens ? { cacheReadInputTokens: state.cacheReadTokens } : {}),
|
|
501
518
|
},
|
|
519
|
+
provider: call.meta,
|
|
502
520
|
};
|
|
503
521
|
}
|
|
504
522
|
/**
|
|
@@ -510,7 +528,7 @@ class MoonshotAIProvider {
|
|
|
510
528
|
* @param state - Mutable token usage counters.
|
|
511
529
|
* @yields {ChatEvent} Chat events extracted from the SSE lines.
|
|
512
530
|
*/
|
|
513
|
-
*processSSELines(lines, pendingTools, state) {
|
|
531
|
+
*processSSELines(lines, pendingTools, state, call) {
|
|
514
532
|
for (const line of lines) {
|
|
515
533
|
if (!line.startsWith('data: '))
|
|
516
534
|
continue;
|
|
@@ -519,6 +537,34 @@ class MoonshotAIProvider {
|
|
|
519
537
|
continue;
|
|
520
538
|
try {
|
|
521
539
|
const event = JSON.parse(json);
|
|
540
|
+
// The reply's own identity, recorded for the caller (see
|
|
541
|
+
// ProviderResponseMeta), and the request's identity verified against
|
|
542
|
+
// whatever the host echoes back. A reply carrying somebody else's
|
|
543
|
+
// identity is not ours to stream on — 2026-10-16 a conversation was
|
|
544
|
+
// handed a complete foreign completion and nothing could tell.
|
|
545
|
+
if (typeof event.id === 'string')
|
|
546
|
+
call.meta.responseId = event.id;
|
|
547
|
+
if (typeof event.model === 'string')
|
|
548
|
+
call.meta.model = event.model;
|
|
549
|
+
const echoedUser = typeof event.user === 'string' ? event.user : undefined;
|
|
550
|
+
const echoedRequest = typeof event.request_id === 'string'
|
|
551
|
+
? event.request_id
|
|
552
|
+
: typeof event.requestId === 'string'
|
|
553
|
+
? event.requestId
|
|
554
|
+
: undefined;
|
|
555
|
+
const wrongUser = echoedUser !== undefined && call.endUserId !== undefined && echoedUser !== call.endUserId;
|
|
556
|
+
const wrongRequest = echoedRequest !== undefined && echoedRequest !== call.meta.requestId;
|
|
557
|
+
if (wrongUser || wrongRequest) {
|
|
558
|
+
logger.error('Provider echoed a different identity — this reply is not ours', {
|
|
559
|
+
requestId: call.meta.requestId,
|
|
560
|
+
echoedUser: wrongUser ? echoedUser : undefined,
|
|
561
|
+
echoedRequestId: wrongRequest ? echoedRequest : undefined,
|
|
562
|
+
responseId: call.meta.responseId,
|
|
563
|
+
traceId: call.meta.traceId,
|
|
564
|
+
});
|
|
565
|
+
yield { type: 'error', message: t('ai.error.apiError'), errorKey: 'ai.error.apiError' };
|
|
566
|
+
return;
|
|
567
|
+
}
|
|
522
568
|
// A mid-stream error arrives as a `data: {"error": {...}}` chunk (no
|
|
523
569
|
// `choices`) — most importantly rate-limit/overload during high load.
|
|
524
570
|
// Without this it matches no branch below and is silently dropped, so the
|
package/dist/types.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import type { AiRateLimitCallback } from '@molecule/api-ai';
|
|
|
10
10
|
export interface MoonshotConfig {
|
|
11
11
|
/** API key. Defaults to MOONSHOT_API_KEY env var. */
|
|
12
12
|
apiKey?: string;
|
|
13
|
-
/** Default model. Defaults to 'kimi-k3'. */
|
|
13
|
+
/** Default model. Defaults to 'kimi-k3.1-pro-highspeed'. */
|
|
14
14
|
defaultModel?: string;
|
|
15
15
|
/** Maximum tokens for completions. */
|
|
16
16
|
maxTokens?: number;
|
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,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAE3D;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,qDAAqD;IACrD,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAE3D;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,qDAAqD;IACrD,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,4DAA4D;IAC5D,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,8EAA8E;IAC9E,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACjC,wFAAwF;IACxF,WAAW,CAAC,EAAE,mBAAmB,CAAA;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,gBAAgB,EAAE,MAAM,CAAA;IACxB,0FAA0F;IAC1F,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,mFAAmF;IACnF,yBAAyB,CAAC,EAAE,MAAM,CAAA;CACnC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/api-ai-moonshot",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
4
4
|
"description": "Moonshot (Kimi) AI provider for molecule.dev",
|
|
5
5
|
"homepage": "https://www.molecule.dev/packages/api-ai-moonshot",
|
|
6
6
|
"type": "module",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"directory": "packages/api/bonds/ai/moonshot"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@molecule/api-ai": "1.3.
|
|
38
|
-
"@molecule/api-bond": "1.0.
|
|
39
|
-
"@types/node": "26.
|
|
37
|
+
"@molecule/api-ai": "1.3.5",
|
|
38
|
+
"@molecule/api-bond": "1.0.3",
|
|
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
|
"peerDependencies": {
|
|
44
44
|
"@molecule/api-ai": "^1.0.1",
|