@minpeter/pss-runtime 0.0.0 → 0.0.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/README.md +7 -4
- package/dist/agent.d.ts +12 -4
- package/dist/agent.d.ts.map +1 -1
- package/dist/agent.js +28 -8
- package/dist/agent.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/llm.d.ts +14 -4
- package/dist/llm.d.ts.map +1 -1
- package/dist/llm.js +1 -9
- package/dist/llm.js.map +1 -1
- package/package.json +2 -4
- package/dist/env.d.ts +0 -6
- package/dist/env.d.ts.map +0 -1
- package/dist/env.js +0 -8
- package/dist/env.js.map +0 -1
package/README.md
CHANGED
|
@@ -3,14 +3,17 @@
|
|
|
3
3
|
Reusable pss-next agent runtime for sessions, model loops, and event streams.
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
|
-
import { Agent } from "@minpeter/pss-runtime";
|
|
6
|
+
import { Agent, type AgentModel } from "@minpeter/pss-runtime";
|
|
7
7
|
|
|
8
|
+
const model: AgentModel = createYourLanguageModel();
|
|
8
9
|
const agent = new Agent({
|
|
9
10
|
instructions: "Answer briefly.",
|
|
11
|
+
model,
|
|
10
12
|
});
|
|
11
13
|
const session = agent.createSession();
|
|
12
14
|
```
|
|
13
15
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
The runtime does not read environment variables or create a default provider.
|
|
17
|
+
Pass a caller-owned `LanguageModel` through `model`, or pass a custom `llm`.
|
|
18
|
+
Product tools are intentionally not included; pass tools from a separate package
|
|
19
|
+
when constructing an `Agent`.
|
package/dist/agent.d.ts
CHANGED
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
import type { LanguageModel } from "ai";
|
|
2
2
|
import { type AgentTools, type Llm } from "./llm";
|
|
3
3
|
import { AgentSession } from "./session/session";
|
|
4
|
-
|
|
4
|
+
interface AgentModelOptions {
|
|
5
5
|
instructions?: string;
|
|
6
|
-
llm?:
|
|
7
|
-
model
|
|
6
|
+
llm?: never;
|
|
7
|
+
model: LanguageModel;
|
|
8
8
|
tools?: AgentTools;
|
|
9
9
|
}
|
|
10
|
+
interface AgentLlmOptions {
|
|
11
|
+
instructions?: never;
|
|
12
|
+
llm: Llm;
|
|
13
|
+
model?: never;
|
|
14
|
+
tools?: never;
|
|
15
|
+
}
|
|
16
|
+
export type AgentOptions = AgentModelOptions | AgentLlmOptions;
|
|
10
17
|
export declare class Agent {
|
|
11
18
|
#private;
|
|
12
|
-
constructor(options
|
|
19
|
+
constructor(options: AgentOptions);
|
|
13
20
|
createSession(): AgentSession;
|
|
14
21
|
}
|
|
22
|
+
export {};
|
|
15
23
|
//# sourceMappingURL=agent.d.ts.map
|
package/dist/agent.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../src/agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AACxC,OAAO,EAAE,KAAK,UAAU,EAAa,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../src/agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AACxC,OAAO,EAAE,KAAK,UAAU,EAAa,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,UAAU,iBAAiB;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,GAAG,CAAC,EAAE,KAAK,CAAC;IACZ,KAAK,EAAE,aAAa,CAAC;IACrB,KAAK,CAAC,EAAE,UAAU,CAAC;CACpB;AAED,UAAU,eAAe;IACvB,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,GAAG,EAAE,GAAG,CAAC;IACT,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED,MAAM,MAAM,YAAY,GAAG,iBAAiB,GAAG,eAAe,CAAC;AAE/D,qBAAa,KAAK;;gBAGJ,OAAO,EAAE,YAAY;IAYjC,aAAa,IAAI,YAAY;CAG9B"}
|
package/dist/agent.js
CHANGED
|
@@ -2,17 +2,37 @@ import { createLlm } from "./llm.js";
|
|
|
2
2
|
import { AgentSession } from "./session/session.js";
|
|
3
3
|
export class Agent {
|
|
4
4
|
#llm;
|
|
5
|
-
constructor(options
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
constructor(options) {
|
|
6
|
+
assertAgentOptions(options);
|
|
7
|
+
this.#llm = hasCustomLlm(options)
|
|
8
|
+
? options.llm
|
|
9
|
+
: createLlm({
|
|
10
|
+
instructions: options.instructions,
|
|
11
|
+
model: options.model,
|
|
12
|
+
tools: options.tools,
|
|
13
|
+
});
|
|
13
14
|
}
|
|
14
15
|
createSession() {
|
|
15
16
|
return new AgentSession(this.#llm);
|
|
16
17
|
}
|
|
17
18
|
}
|
|
19
|
+
function assertAgentOptions(options) {
|
|
20
|
+
if (options === null || typeof options !== "object") {
|
|
21
|
+
throw new TypeError("Agent options are required. Provide either { model } or { llm }.");
|
|
22
|
+
}
|
|
23
|
+
const hasLlm = hasCustomLlm(options);
|
|
24
|
+
const hasModel = "model" in options && options.model !== undefined && options.model !== null;
|
|
25
|
+
if (hasLlm && hasModel) {
|
|
26
|
+
throw new TypeError("Agent constructor: provide either options.llm or options.model, not both.");
|
|
27
|
+
}
|
|
28
|
+
if ("llm" in options && options.llm !== undefined && !hasLlm) {
|
|
29
|
+
throw new TypeError("Agent constructor: invalid options.llm.");
|
|
30
|
+
}
|
|
31
|
+
if (!(hasLlm || hasModel)) {
|
|
32
|
+
throw new TypeError("Agent constructor: missing options.model.");
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
function hasCustomLlm(options) {
|
|
36
|
+
return "llm" in options && typeof options.llm === "function";
|
|
37
|
+
}
|
|
18
38
|
//# sourceMappingURL=agent.js.map
|
package/dist/agent.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../src/agent.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,SAAS,EAAY,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../src/agent.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,SAAS,EAAY,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAkBjD,MAAM,OAAO,KAAK;IACP,IAAI,CAAM;IAEnB,YAAY,OAAqB;QAC/B,kBAAkB,CAAC,OAAO,CAAC,CAAC;QAE5B,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC,OAAO,CAAC;YAC/B,CAAC,CAAC,OAAO,CAAC,GAAG;YACb,CAAC,CAAC,SAAS,CAAC;gBACR,YAAY,EAAE,OAAO,CAAC,YAAY;gBAClC,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,KAAK,EAAE,OAAO,CAAC,KAAK;aACrB,CAAC,CAAC;IACT,CAAC;IAED,aAAa;QACX,OAAO,IAAI,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC;CACF;AAED,SAAS,kBAAkB,CAAC,OAAgB;IAC1C,IAAI,OAAO,KAAK,IAAI,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;QACpD,MAAM,IAAI,SAAS,CACjB,kEAAkE,CACnE,CAAC;IACJ,CAAC;IAED,MAAM,MAAM,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;IACrC,MAAM,QAAQ,GACZ,OAAO,IAAI,OAAO,IAAI,OAAO,CAAC,KAAK,KAAK,SAAS,IAAI,OAAO,CAAC,KAAK,KAAK,IAAI,CAAC;IAE9E,IAAI,MAAM,IAAI,QAAQ,EAAE,CAAC;QACvB,MAAM,IAAI,SAAS,CACjB,2EAA2E,CAC5E,CAAC;IACJ,CAAC;IAED,IAAI,KAAK,IAAI,OAAO,IAAI,OAAO,CAAC,GAAG,KAAK,SAAS,IAAI,CAAC,MAAM,EAAE,CAAC;QAC7D,MAAM,IAAI,SAAS,CAAC,yCAAyC,CAAC,CAAC;IACjE,CAAC;IAED,IAAI,CAAC,CAAC,MAAM,IAAI,QAAQ,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,SAAS,CAAC,2CAA2C,CAAC,CAAC;IACnE,CAAC;AACH,CAAC;AAED,SAAS,YAAY,CAAC,OAAe;IACnC,OAAO,KAAK,IAAI,OAAO,IAAI,OAAO,OAAO,CAAC,GAAG,KAAK,UAAU,CAAC;AAC/D,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { Agent, type AgentOptions } from "./agent";
|
|
2
2
|
export { type AgentLoopResult, runAgentLoop } from "./agent-loop";
|
|
3
|
-
export type { AgentModel, AgentTools, LlmOutputPart, RuntimeCreateLlmOptions, RuntimeLlm, RuntimeLlmContext, RuntimeLlmOutput, } from "./llm";
|
|
4
|
-
export { createLlm
|
|
3
|
+
export type { AgentModel, AgentTool, AgentToolExecute, AgentToolExecutionOptions, AgentTools, LlmOutputPart, RuntimeCreateLlmOptions, RuntimeLlm, RuntimeLlmContext, RuntimeLlmOutput, } from "./llm";
|
|
4
|
+
export { createLlm } from "./llm";
|
|
5
5
|
export type { AgentEvent, AgentEventListener, AssistantReasoning, AssistantText, ToolCall, ToolResult, UserText, } from "./session/events";
|
|
6
6
|
export { AgentSession, type SessionInput } from "./session/session";
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,KAAK,eAAe,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAClE,YAAY,EACV,UAAU,EACV,UAAU,EACV,aAAa,EACb,uBAAuB,EACvB,UAAU,EACV,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,KAAK,eAAe,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAClE,YAAY,EACV,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,yBAAyB,EACzB,UAAU,EACV,aAAa,EACb,uBAAuB,EACvB,UAAU,EACV,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,YAAY,EACV,UAAU,EACV,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,EACb,QAAQ,EACR,UAAU,EACV,QAAQ,GACT,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Agent } from "./agent.js";
|
|
2
2
|
export { runAgentLoop } from "./agent-loop.js";
|
|
3
|
-
export { createLlm
|
|
3
|
+
export { createLlm } from "./llm.js";
|
|
4
4
|
export { AgentSession } from "./session/session.js";
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AACnD,OAAO,EAAwB,YAAY,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AACnD,OAAO,EAAwB,YAAY,EAAE,MAAM,cAAc,CAAC;AAalE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUlC,OAAO,EAAE,YAAY,EAAqB,MAAM,mBAAmB,CAAC"}
|
package/dist/llm.d.ts
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import type { LanguageModel, ModelMessage } from "ai";
|
|
2
2
|
import { generateText } from "ai";
|
|
3
|
-
export
|
|
3
|
+
export interface AgentToolExecutionOptions {
|
|
4
|
+
abortSignal?: AbortSignal;
|
|
5
|
+
[key: string]: unknown;
|
|
6
|
+
}
|
|
7
|
+
export type AgentToolExecute = unknown;
|
|
8
|
+
export interface AgentTool {
|
|
9
|
+
description?: unknown;
|
|
10
|
+
execute?: AgentToolExecute;
|
|
11
|
+
inputSchema: unknown;
|
|
12
|
+
outputSchema?: unknown;
|
|
13
|
+
}
|
|
14
|
+
export type AgentTools = Record<string, AgentTool>;
|
|
4
15
|
export type AgentModel = LanguageModel;
|
|
5
16
|
export type LlmOutput = Awaited<ReturnType<typeof generateText>>["responseMessages"];
|
|
6
17
|
export type LlmOutputPart = LlmOutput[number];
|
|
@@ -11,13 +22,12 @@ export interface LlmContext {
|
|
|
11
22
|
export type Llm = (context: LlmContext) => Promise<LlmOutput>;
|
|
12
23
|
export interface CreateLlmOptions {
|
|
13
24
|
instructions?: string;
|
|
14
|
-
model
|
|
25
|
+
model: LanguageModel;
|
|
15
26
|
tools?: AgentTools;
|
|
16
27
|
}
|
|
17
28
|
export type RuntimeCreateLlmOptions = CreateLlmOptions;
|
|
18
29
|
export type RuntimeLlm = Llm;
|
|
19
30
|
export type RuntimeLlmContext = LlmContext;
|
|
20
31
|
export type RuntimeLlmOutput = LlmOutput;
|
|
21
|
-
export declare
|
|
22
|
-
export declare function createLlm({ model, instructions, tools, }?: CreateLlmOptions): Llm;
|
|
32
|
+
export declare function createLlm({ model, instructions, tools, }: CreateLlmOptions): Llm;
|
|
23
33
|
//# sourceMappingURL=llm.d.ts.map
|
package/dist/llm.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm.d.ts","sourceRoot":"","sources":["../src/llm.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"llm.d.ts","sourceRoot":"","sources":["../src/llm.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AACtD,OAAO,EAAE,YAAY,EAAgB,MAAM,IAAI,CAAC;AAEhD,MAAM,WAAW,yBAAyB;IACxC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC;AAEvC,MAAM,WAAW,SAAS;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;AACnD,MAAM,MAAM,UAAU,GAAG,aAAa,CAAC;AACvC,MAAM,MAAM,SAAS,GAAG,OAAO,CAC7B,UAAU,CAAC,OAAO,YAAY,CAAC,CAChC,CAAC,kBAAkB,CAAC,CAAC;AACtB,MAAM,MAAM,aAAa,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;AAE9C,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,SAAS,YAAY,EAAE,CAAC;IACjC,MAAM,EAAE,WAAW,CAAC;CACrB;AAED,MAAM,MAAM,GAAG,GAAG,CAAC,OAAO,EAAE,UAAU,KAAK,OAAO,CAAC,SAAS,CAAC,CAAC;AAE9D,MAAM,WAAW,gBAAgB;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,aAAa,CAAC;IACrB,KAAK,CAAC,EAAE,UAAU,CAAC;CACpB;AAED,MAAM,MAAM,uBAAuB,GAAG,gBAAgB,CAAC;AACvD,MAAM,MAAM,UAAU,GAAG,GAAG,CAAC;AAC7B,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC;AAC3C,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC;AAEzC,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,YAAY,EACZ,KAAK,GACN,EAAE,gBAAgB,GAAG,GAAG,CAcxB"}
|
package/dist/llm.js
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
import { createOpenAICompatible } from "@ai-sdk/openai-compatible";
|
|
2
1
|
import { generateText } from "ai";
|
|
3
|
-
|
|
4
|
-
const defaultProvider = createOpenAICompatible({
|
|
5
|
-
name: "custom",
|
|
6
|
-
apiKey: env.AI_API_KEY,
|
|
7
|
-
baseURL: env.AI_BASE_URL,
|
|
8
|
-
});
|
|
9
|
-
export const defaultModel = defaultProvider(env.AI_MODEL);
|
|
10
|
-
export function createLlm({ model = defaultModel, instructions, tools, } = {}) {
|
|
2
|
+
export function createLlm({ model, instructions, tools, }) {
|
|
11
3
|
const runtimeTools = tools;
|
|
12
4
|
return async ({ history, signal }) => {
|
|
13
5
|
const { responseMessages } = await generateText({
|
package/dist/llm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm.js","sourceRoot":"","sources":["../src/llm.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"llm.js","sourceRoot":"","sources":["../src/llm.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAgB,MAAM,IAAI,CAAC;AAyChD,MAAM,UAAU,SAAS,CAAC,EACxB,KAAK,EACL,YAAY,EACZ,KAAK,GACY;IACjB,MAAM,YAAY,GAAG,KAA4B,CAAC;IAElD,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE;QACnC,MAAM,EAAE,gBAAgB,EAAE,GAAG,MAAM,YAAY,CAAC;YAC9C,WAAW,EAAE,MAAM;YACnB,YAAY;YACZ,QAAQ,EAAE,CAAC,GAAG,OAAO,CAAC;YACtB,KAAK;YACL,KAAK,EAAE,YAAY;SACpB,CAAC,CAAC;QAEH,OAAO,gBAAgB,CAAC;IAC1B,CAAC,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minpeter/pss-runtime",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1",
|
|
4
4
|
"description": "Generic agent runtime for sessions, model loops, and event streams.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -26,9 +26,7 @@
|
|
|
26
26
|
"provenance": true
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"
|
|
30
|
-
"ai": "7.0.0-canary.142",
|
|
31
|
-
"dotenv": "^17.4.2"
|
|
29
|
+
"ai": "7.0.0-canary.142"
|
|
32
30
|
},
|
|
33
31
|
"scripts": {
|
|
34
32
|
"build": "rm -rf dist && tsc -p tsconfig.build.json && node ../../scripts/fix-esm-imports.mjs dist",
|
package/dist/env.d.ts
DELETED
package/dist/env.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../src/env.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,GAAG;;;;CAKN,CAAC"}
|
package/dist/env.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { config } from "dotenv";
|
|
2
|
-
config({ override: true, quiet: true });
|
|
3
|
-
export const env = {
|
|
4
|
-
AI_API_KEY: process.env.AI_API_KEY?.trim() || undefined,
|
|
5
|
-
AI_BASE_URL: process.env.AI_BASE_URL?.trim() || "https://apis.opengateway.ai/v1",
|
|
6
|
-
AI_MODEL: process.env.AI_MODEL?.trim() || "minimax/MiniMax-M2.7",
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=env.js.map
|
package/dist/env.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"env.js","sourceRoot":"","sources":["../src/env.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAExC,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,UAAU,EAAE,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,IAAI,EAAE,IAAI,SAAS;IACvD,WAAW,EACT,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,IAAI,EAAE,IAAI,gCAAgC;IACrE,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,sBAAsB;CACxD,CAAC"}
|