@kalphq/cli 0.0.0-dev-20260420071411 → 0.0.0-dev-20260421194335
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/dist/{chunk-BQOY6ZUE.js → chunk-ZC6AEFXW.js} +10 -10
- package/dist/chunk-ZC6AEFXW.js.map +1 -0
- package/dist/{create-2G3FCCZT.js → create-M4XZB5C4.js} +2 -2
- package/dist/index.js +2 -2
- package/dist/{init-2RJWFHB2.js → init-HZE6TJJU.js} +2 -2
- package/package.json +2 -2
- package/dist/chunk-BQOY6ZUE.js.map +0 -1
- /package/dist/{create-2G3FCCZT.js.map → create-M4XZB5C4.js.map} +0 -0
- /package/dist/{init-2RJWFHB2.js.map → init-HZE6TJJU.js.map} +0 -0
|
@@ -19778,8 +19778,8 @@ export default defineAgent({
|
|
|
19778
19778
|
routes: [healthRoute],
|
|
19779
19779
|
flows: [chatFlow],
|
|
19780
19780
|
|
|
19781
|
-
async onMessage({ message,
|
|
19782
|
-
const stream =
|
|
19781
|
+
async onMessage({ message, ai }) {
|
|
19782
|
+
const stream = ai.stream({
|
|
19783
19783
|
model: "openai/gpt-4o-mini",
|
|
19784
19784
|
system: "You are a helpful assistant.",
|
|
19785
19785
|
prompt: message.text,
|
|
@@ -19788,10 +19788,10 @@ export default defineAgent({
|
|
|
19788
19788
|
return stream;
|
|
19789
19789
|
},
|
|
19790
19790
|
});`;
|
|
19791
|
-
const stepProcessFile = `import {
|
|
19791
|
+
const stepProcessFile = `import { defineStep } from "@kalphq/sdk";
|
|
19792
19792
|
import { z } from "zod";
|
|
19793
19793
|
|
|
19794
|
-
export const processQuery =
|
|
19794
|
+
export const processQuery = defineStep({
|
|
19795
19795
|
id: "process_query",
|
|
19796
19796
|
description: "Analyze and enhance user query",
|
|
19797
19797
|
input: z.object({ query: z.string() }),
|
|
@@ -19812,10 +19812,10 @@ export const processQuery = createStep({
|
|
|
19812
19812
|
};
|
|
19813
19813
|
},
|
|
19814
19814
|
});`;
|
|
19815
|
-
const stepFormatFile = `import {
|
|
19815
|
+
const stepFormatFile = `import { defineStep } from "@kalphq/sdk";
|
|
19816
19816
|
import { z } from "zod";
|
|
19817
19817
|
|
|
19818
|
-
export const formatResponse =
|
|
19818
|
+
export const formatResponse = defineStep({
|
|
19819
19819
|
id: "format_response",
|
|
19820
19820
|
description: "Format final response with metadata",
|
|
19821
19821
|
input: z.object({
|
|
@@ -19840,10 +19840,10 @@ export const formatResponse = createStep({
|
|
|
19840
19840
|
};
|
|
19841
19841
|
},
|
|
19842
19842
|
});`;
|
|
19843
|
-
const toolFile = `import {
|
|
19843
|
+
const toolFile = `import { defineTool } from "@kalphq/sdk";
|
|
19844
19844
|
import { z } from "zod";
|
|
19845
19845
|
|
|
19846
|
-
export const searchTool =
|
|
19846
|
+
export const searchTool = defineTool({
|
|
19847
19847
|
id: "search",
|
|
19848
19848
|
description: "Search for relevant information",
|
|
19849
19849
|
input: z.object({ query: z.string(), limit: z.number().default(3) }),
|
|
@@ -19863,7 +19863,7 @@ export const healthRoute = defineRoute({
|
|
|
19863
19863
|
id: "health",
|
|
19864
19864
|
method: "GET",
|
|
19865
19865
|
path: "/health",
|
|
19866
|
-
handler: async (_req, res
|
|
19866
|
+
handler: async (_req, res) => {
|
|
19867
19867
|
res.json({
|
|
19868
19868
|
status: "ok",
|
|
19869
19869
|
agent: "${agentName}",
|
|
@@ -19952,4 +19952,4 @@ export {
|
|
|
19952
19952
|
promptProjectName,
|
|
19953
19953
|
promptAgentDetails
|
|
19954
19954
|
};
|
|
19955
|
-
//# sourceMappingURL=chunk-
|
|
19955
|
+
//# sourceMappingURL=chunk-ZC6AEFXW.js.map
|