@kalphq/cli 0.0.0-dev-20260420071411 → 0.0.0-dev-20260422003724

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.
Files changed (26) hide show
  1. package/dist/{add-TSWPTKEC.js → add-LVQAW23G.js} +4 -4
  2. package/dist/{chunk-BQOY6ZUE.js → chunk-3DCOV57B.js} +15 -23
  3. package/dist/chunk-3DCOV57B.js.map +1 -0
  4. package/dist/{chunk-KD6MYE65.js → chunk-MMS3GWBG.js} +2 -53
  5. package/dist/{chunk-KD6MYE65.js.map → chunk-MMS3GWBG.js.map} +1 -1
  6. package/dist/{chunk-S3GDDAMX.js → chunk-TMVNFUDA.js} +6 -9
  7. package/dist/chunk-TMVNFUDA.js.map +1 -0
  8. package/dist/{create-2G3FCCZT.js → create-VTJKDUMA.js} +2 -3
  9. package/dist/{create-2G3FCCZT.js.map → create-VTJKDUMA.js.map} +1 -1
  10. package/dist/{delete-IDNFBWDW.js → delete-AFDTCA52.js} +4 -4
  11. package/dist/index.js +5 -5
  12. package/dist/{init-2RJWFHB2.js → init-O2XMITQ6.js} +2 -3
  13. package/dist/{init-2RJWFHB2.js.map → init-O2XMITQ6.js.map} +1 -1
  14. package/dist/{migrate-ET4ZIJEX.js → migrate-CIEU36X6.js} +2 -2
  15. package/dist/{push-BYCTNMMF.js → push-Y57MBTBB.js} +2 -2
  16. package/dist/{secrets-FHVISDYJ.js → secrets-PXU3BYSN.js} +4 -4
  17. package/dist/{sync-2UR3KCWW.js → sync-HEIRRPCA.js} +4 -4
  18. package/package.json +2 -2
  19. package/dist/chunk-BQOY6ZUE.js.map +0 -1
  20. package/dist/chunk-S3GDDAMX.js.map +0 -1
  21. /package/dist/{add-TSWPTKEC.js.map → add-LVQAW23G.js.map} +0 -0
  22. /package/dist/{delete-IDNFBWDW.js.map → delete-AFDTCA52.js.map} +0 -0
  23. /package/dist/{migrate-ET4ZIJEX.js.map → migrate-CIEU36X6.js.map} +0 -0
  24. /package/dist/{push-BYCTNMMF.js.map → push-Y57MBTBB.js.map} +0 -0
  25. /package/dist/{secrets-FHVISDYJ.js.map → secrets-PXU3BYSN.js.map} +0 -0
  26. /package/dist/{sync-2UR3KCWW.js.map → sync-HEIRRPCA.js.map} +0 -0
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
+ import {
3
+ generateTypes
4
+ } from "./chunk-MMS3GWBG.js";
2
5
  import {
3
6
  getAuthToken
4
7
  } from "./chunk-6LLXGS2P.js";
5
- import {
6
- generateTypes
7
- } from "./chunk-KD6MYE65.js";
8
8
  import "./chunk-2H7UOFLK.js";
9
9
 
10
10
  // src/commands/secrets/add.ts
@@ -134,4 +134,4 @@ var add_default = defineCommand({
134
134
  export {
135
135
  add_default as default
136
136
  };
137
- //# sourceMappingURL=add-TSWPTKEC.js.map
137
+ //# sourceMappingURL=add-LVQAW23G.js.map
@@ -1,9 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import {
3
- generateTypes,
4
- updateKalpDts,
5
- updateTsconfig
6
- } from "./chunk-KD6MYE65.js";
7
2
  import {
8
3
  __export
9
4
  } from "./chunk-2H7UOFLK.js";
@@ -19750,9 +19745,6 @@ export default defineConfig({
19750
19745
  });
19751
19746
  `;
19752
19747
  await writeFile(join4(targetDir, "kalp.config.ts"), kalpConfig, "utf-8");
19753
- await generateTypes(targetDir);
19754
- await updateKalpDts(targetDir);
19755
- await updateTsconfig(targetDir);
19756
19748
  await replacePlaceholders(targetDir, { __PROJECT_NAME__: projectName });
19757
19749
  }
19758
19750
  async function scaffoldAgent(opts) {
@@ -19778,8 +19770,8 @@ export default defineAgent({
19778
19770
  routes: [healthRoute],
19779
19771
  flows: [chatFlow],
19780
19772
 
19781
- async onMessage({ message, ctx, actions }) {
19782
- const stream = actions.ai.stream({
19773
+ async onMessage({ message, ai }) {
19774
+ const stream = ai.stream({
19783
19775
  model: "openai/gpt-4o-mini",
19784
19776
  system: "You are a helpful assistant.",
19785
19777
  prompt: message.text,
@@ -19788,14 +19780,14 @@ export default defineAgent({
19788
19780
  return stream;
19789
19781
  },
19790
19782
  });`;
19791
- const stepProcessFile = `import { createStep } from "@kalphq/sdk";
19783
+ const stepProcessFile = `import { defineStep } from "@kalphq/sdk";
19792
19784
  import { z } from "zod";
19793
19785
 
19794
- export const processQuery = createStep({
19786
+ export const processQuery = defineStep({
19795
19787
  id: "process_query",
19796
19788
  description: "Analyze and enhance user query",
19797
- input: z.object({ query: z.string() }),
19798
- output: z.object({
19789
+ inputSchema: z.object({ query: z.string() }),
19790
+ outputSchema: z.object({
19799
19791
  enhanced: z.string(),
19800
19792
  intent: z.string(),
19801
19793
  needsSearch: z.boolean(),
@@ -19812,17 +19804,17 @@ export const processQuery = createStep({
19812
19804
  };
19813
19805
  },
19814
19806
  });`;
19815
- const stepFormatFile = `import { createStep } from "@kalphq/sdk";
19807
+ const stepFormatFile = `import { defineStep } from "@kalphq/sdk";
19816
19808
  import { z } from "zod";
19817
19809
 
19818
- export const formatResponse = createStep({
19810
+ export const formatResponse = defineStep({
19819
19811
  id: "format_response",
19820
19812
  description: "Format final response with metadata",
19821
- input: z.object({
19813
+ inputSchema: z.object({
19822
19814
  text: z.string(),
19823
19815
  sources: z.array(z.string()).optional(),
19824
19816
  }),
19825
- output: z.object({
19817
+ outputSchema: z.object({
19826
19818
  formatted: z.string(),
19827
19819
  meta: z.object({ timestamp: z.number(), version: z.string() }),
19828
19820
  }),
@@ -19840,13 +19832,13 @@ export const formatResponse = createStep({
19840
19832
  };
19841
19833
  },
19842
19834
  });`;
19843
- const toolFile = `import { createTool } from "@kalphq/sdk";
19835
+ const toolFile = `import { defineTool } from "@kalphq/sdk";
19844
19836
  import { z } from "zod";
19845
19837
 
19846
- export const searchTool = createTool({
19838
+ export const searchTool = defineTool({
19847
19839
  id: "search",
19848
19840
  description: "Search for relevant information",
19849
- input: z.object({ query: z.string(), limit: z.number().default(3) }),
19841
+ inputSchema: z.object({ query: z.string(), limit: z.number().default(3) }),
19850
19842
  async execute({ query, limit }) {
19851
19843
  // Simulated search - replace with real API call
19852
19844
  const results = [
@@ -19863,7 +19855,7 @@ export const healthRoute = defineRoute({
19863
19855
  id: "health",
19864
19856
  method: "GET",
19865
19857
  path: "/health",
19866
- handler: async (_req, res, { ctx }) => {
19858
+ handler: async (_req, res) => {
19867
19859
  res.json({
19868
19860
  status: "ok",
19869
19861
  agent: "${agentName}",
@@ -19952,4 +19944,4 @@ export {
19952
19944
  promptProjectName,
19953
19945
  promptAgentDetails
19954
19946
  };
19955
- //# sourceMappingURL=chunk-BQOY6ZUE.js.map
19947
+ //# sourceMappingURL=chunk-3DCOV57B.js.map