@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.
@@ -19778,8 +19778,8 @@ export default defineAgent({
19778
19778
  routes: [healthRoute],
19779
19779
  flows: [chatFlow],
19780
19780
 
19781
- async onMessage({ message, ctx, actions }) {
19782
- const stream = actions.ai.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 { createStep } from "@kalphq/sdk";
19791
+ const stepProcessFile = `import { defineStep } from "@kalphq/sdk";
19792
19792
  import { z } from "zod";
19793
19793
 
19794
- export const processQuery = createStep({
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 { createStep } from "@kalphq/sdk";
19815
+ const stepFormatFile = `import { defineStep } from "@kalphq/sdk";
19816
19816
  import { z } from "zod";
19817
19817
 
19818
- export const formatResponse = createStep({
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 { createTool } from "@kalphq/sdk";
19843
+ const toolFile = `import { defineTool } from "@kalphq/sdk";
19844
19844
  import { z } from "zod";
19845
19845
 
19846
- export const searchTool = createTool({
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, { ctx }) => {
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-BQOY6ZUE.js.map
19955
+ //# sourceMappingURL=chunk-ZC6AEFXW.js.map