@jixo/cli 0.12.0 → 0.13.0

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 (42) hide show
  1. package/dist/cli.d.ts.map +1 -1
  2. package/dist/cli.js +39 -64
  3. package/dist/cli.js.map +1 -1
  4. package/dist/commands/daemon.d.ts +5 -0
  5. package/dist/commands/daemon.d.ts.map +1 -0
  6. package/dist/commands/daemon.js +20 -0
  7. package/dist/commands/daemon.js.map +1 -0
  8. package/dist/commands/doctor/config.d.ts.map +1 -1
  9. package/dist/commands/doctor/config.js +5 -18
  10. package/dist/commands/doctor/config.js.map +1 -1
  11. package/dist/commands/doctor/doctor.d.ts +1 -16
  12. package/dist/commands/doctor/doctor.d.ts.map +1 -1
  13. package/dist/commands/doctor/doctor.js +85 -52
  14. package/dist/commands/doctor/doctor.js.map +1 -1
  15. package/dist/commands/doctor/index.d.ts +1 -1
  16. package/dist/commands/doctor/index.d.ts.map +1 -1
  17. package/dist/commands/doctor/index.js +0 -11
  18. package/dist/commands/doctor/index.js.map +1 -1
  19. package/dist/commands/doctor/types.d.ts +17 -2
  20. package/dist/commands/doctor/types.d.ts.map +1 -1
  21. package/dist/commands/doctor/types.js.map +1 -1
  22. package/dist/commands/init.d.ts.map +1 -1
  23. package/dist/commands/init.js +29 -52
  24. package/dist/commands/init.js.map +1 -1
  25. package/dist/commands/tasks/ai-tools.d.ts +4 -11
  26. package/dist/commands/tasks/ai-tools.d.ts.map +1 -1
  27. package/dist/commands/tasks/run-ai-task.d.ts.map +1 -1
  28. package/dist/commands/tasks/run-ai-task.js +8 -3
  29. package/dist/commands/tasks/run-ai-task.js.map +1 -1
  30. package/dist/commands/tasks/run.d.ts +9 -6
  31. package/dist/commands/tasks/run.d.ts.map +1 -1
  32. package/dist/commands/tasks/run.js +38 -85
  33. package/dist/commands/tasks/run.js.map +1 -1
  34. package/dist/config.d.ts +5 -196
  35. package/dist/config.d.ts.map +1 -1
  36. package/dist/config.js +9 -21
  37. package/dist/config.js.map +1 -1
  38. package/dist/env.d.ts +2 -13
  39. package/dist/env.d.ts.map +1 -1
  40. package/dist/env.js +3 -13
  41. package/dist/env.js.map +1 -1
  42. package/package.json +11 -11
package/dist/config.d.ts CHANGED
@@ -1,206 +1,15 @@
1
1
  import z from "zod";
2
- declare const zJixoTask: z.ZodUnion<[z.ZodString, z.ZodObject<{
3
- type: z.ZodLiteral<"file">;
4
- name: z.ZodOptional<z.ZodString>;
5
- filename: z.ZodString;
6
- }, "strip", z.ZodTypeAny, {
7
- type: "file";
8
- filename: string;
9
- name?: string | undefined;
10
- }, {
11
- type: "file";
12
- filename: string;
13
- name?: string | undefined;
14
- }>, z.ZodObject<{
15
- type: z.ZodLiteral<"dir">;
16
- dirname: z.ZodString;
17
- }, "strip", z.ZodTypeAny, {
18
- type: "dir";
19
- dirname: string;
20
- }, {
21
- type: "dir";
22
- dirname: string;
23
- }>, z.ZodObject<{
24
- type: z.ZodLiteral<"prompt">;
25
- name: z.ZodOptional<z.ZodString>;
26
- content: z.ZodString;
27
- }, "strip", z.ZodTypeAny, {
28
- type: "prompt";
29
- content: string;
30
- name?: string | undefined;
31
- }, {
32
- type: "prompt";
33
- content: string;
34
- name?: string | undefined;
35
- }>]>;
36
2
  declare const zJixoConfig: z.ZodObject<{
37
- tasks: z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
38
- type: z.ZodLiteral<"file">;
39
- name: z.ZodOptional<z.ZodString>;
40
- filename: z.ZodString;
41
- }, "strip", z.ZodTypeAny, {
42
- type: "file";
43
- filename: string;
44
- name?: string | undefined;
45
- }, {
46
- type: "file";
47
- filename: string;
48
- name?: string | undefined;
49
- }>, z.ZodObject<{
50
- type: z.ZodLiteral<"dir">;
51
- dirname: z.ZodString;
52
- }, "strip", z.ZodTypeAny, {
53
- type: "dir";
54
- dirname: string;
55
- }, {
56
- type: "dir";
57
- dirname: string;
58
- }>, z.ZodObject<{
59
- type: z.ZodLiteral<"prompt">;
60
- name: z.ZodOptional<z.ZodString>;
61
- content: z.ZodString;
62
- }, "strip", z.ZodTypeAny, {
63
- type: "prompt";
64
- content: string;
65
- name?: string | undefined;
66
- }, {
67
- type: "prompt";
68
- content: string;
69
- name?: string | undefined;
70
- }>]>, "many">, z.ZodUnion<[z.ZodString, z.ZodObject<{
71
- type: z.ZodLiteral<"file">;
72
- name: z.ZodOptional<z.ZodString>;
73
- filename: z.ZodString;
74
- }, "strip", z.ZodTypeAny, {
75
- type: "file";
76
- filename: string;
77
- name?: string | undefined;
78
- }, {
79
- type: "file";
80
- filename: string;
81
- name?: string | undefined;
82
- }>, z.ZodObject<{
83
- type: z.ZodLiteral<"dir">;
84
- dirname: z.ZodString;
85
- }, "strip", z.ZodTypeAny, {
86
- type: "dir";
87
- dirname: string;
88
- }, {
89
- type: "dir";
90
- dirname: string;
91
- }>, z.ZodObject<{
92
- type: z.ZodLiteral<"prompt">;
93
- name: z.ZodOptional<z.ZodString>;
94
- content: z.ZodString;
95
- }, "strip", z.ZodTypeAny, {
96
- type: "prompt";
97
- content: string;
98
- name?: string | undefined;
99
- }, {
100
- type: "prompt";
101
- content: string;
102
- name?: string | undefined;
103
- }>]>]>;
3
+ coreUrl: z.ZodDefault<z.ZodOptional<z.ZodString>>;
104
4
  }, "strip", z.ZodTypeAny, {
105
- tasks: string | {
106
- type: "file";
107
- filename: string;
108
- name?: string | undefined;
109
- } | {
110
- type: "dir";
111
- dirname: string;
112
- } | {
113
- type: "prompt";
114
- content: string;
115
- name?: string | undefined;
116
- } | (string | {
117
- type: "file";
118
- filename: string;
119
- name?: string | undefined;
120
- } | {
121
- type: "dir";
122
- dirname: string;
123
- } | {
124
- type: "prompt";
125
- content: string;
126
- name?: string | undefined;
127
- })[];
5
+ coreUrl: string;
128
6
  }, {
129
- tasks: string | {
130
- type: "file";
131
- filename: string;
132
- name?: string | undefined;
133
- } | {
134
- type: "dir";
135
- dirname: string;
136
- } | {
137
- type: "prompt";
138
- content: string;
139
- name?: string | undefined;
140
- } | (string | {
141
- type: "file";
142
- filename: string;
143
- name?: string | undefined;
144
- } | {
145
- type: "dir";
146
- dirname: string;
147
- } | {
148
- type: "prompt";
149
- content: string;
150
- name?: string | undefined;
151
- })[];
7
+ coreUrl?: string | undefined;
152
8
  }>;
153
- export type JixoTask = z.output<typeof zJixoTask>;
154
9
  export type JixoConfig = z.output<typeof zJixoConfig>;
155
10
  export declare const defineConfig: (config: Partial<JixoConfig>) => {
156
- tasks: string | {
157
- type: "file";
158
- filename: string;
159
- name?: string | undefined;
160
- } | {
161
- type: "dir";
162
- dirname: string;
163
- } | {
164
- type: "prompt";
165
- content: string;
166
- name?: string | undefined;
167
- } | (string | {
168
- type: "file";
169
- filename: string;
170
- name?: string | undefined;
171
- } | {
172
- type: "dir";
173
- dirname: string;
174
- } | {
175
- type: "prompt";
176
- content: string;
177
- name?: string | undefined;
178
- })[];
11
+ coreUrl: string;
179
12
  };
180
- export declare const loadConfig: (dir: string) => Promise<{
181
- tasks: string | {
182
- type: "file";
183
- filename: string;
184
- name?: string | undefined;
185
- } | {
186
- type: "dir";
187
- dirname: string;
188
- } | {
189
- type: "prompt";
190
- content: string;
191
- name?: string | undefined;
192
- } | (string | {
193
- type: "file";
194
- filename: string;
195
- name?: string | undefined;
196
- } | {
197
- type: "dir";
198
- dirname: string;
199
- } | {
200
- type: "prompt";
201
- content: string;
202
- name?: string | undefined;
203
- })[];
204
- }>;
13
+ export declare const loadConfig: (dir: string) => Promise<JixoConfig>;
205
14
  export {};
206
15
  //# sourceMappingURL=config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAEA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgBb,CAAC;AACH,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEf,CAAC;AAKH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,SAAS,CAAC,CAAC;AAClD,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,WAAW,CAAC,CAAC;AACtD,eAAO,MAAM,YAAY,GAAI,QAAQ,OAAO,CAAC,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;CAEvD,CAAC;AAEF,eAAO,MAAM,UAAU,GAAU,KAAK,MAAM;;;;;;;;;;;;;;;;;;;;;;;;EAI3C,CAAC"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAEA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,QAAA,MAAM,WAAW;;;;;;EAEf,CAAC;AAMH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD,eAAO,MAAM,YAAY,GAAI,QAAQ,OAAO,CAAC,UAAU,CAAC;;CAEvD,CAAC;AAEF,eAAO,MAAM,UAAU,GAAU,KAAK,MAAM,KAAG,OAAO,CAAC,UAAU,CAOhE,CAAC"}
package/dist/config.js CHANGED
@@ -1,35 +1,23 @@
1
1
  import { cosmiconfig } from "cosmiconfig";
2
2
  import { defu } from "defu";
3
3
  import z from "zod";
4
- const zJixoTask = z.union([
5
- z.string(),
6
- z.object({
7
- type: z.literal("file"),
8
- name: z.string().optional(),
9
- filename: z.string(),
10
- }),
11
- z.object({
12
- type: z.literal("dir"),
13
- dirname: z.string(),
14
- }),
15
- z.object({
16
- type: z.literal("prompt"),
17
- name: z.string().optional(),
18
- content: z.string(),
19
- }),
20
- ]);
4
+ const DEFAULT_CORE_URL = "http://localhost:4111";
21
5
  const zJixoConfig = z.object({
22
- tasks: z.union([z.array(zJixoTask), zJixoTask]),
6
+ coreUrl: z.string().url().optional().default(DEFAULT_CORE_URL),
23
7
  });
24
8
  const defaultConfig = {
25
- tasks: { type: "dir", dirname: ".jixo" },
9
+ coreUrl: DEFAULT_CORE_URL,
26
10
  };
27
11
  export const defineConfig = (config) => {
28
12
  return zJixoConfig.parse(config);
29
13
  };
30
14
  export const loadConfig = async (dir) => {
31
- const explorer = cosmiconfig("jixo");
15
+ const explorer = cosmiconfig("jixo", {
16
+ searchStrategy: "global",
17
+ });
32
18
  const loaded = await explorer.search(dir);
33
- return defu(loaded?.config, defaultConfig);
19
+ // Use Zod to parse the loaded config, which applies defaults if properties are missing.
20
+ return defu(zJixoConfig.parse(loaded?.config || {}), defaultConfig);
34
21
  };
22
+ console.log(defineConfig({}));
35
23
  //# sourceMappingURL=config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,aAAa,CAAC;AACxC,OAAO,EAAC,IAAI,EAAC,MAAM,MAAM,CAAC;AAC1B,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC;IACxB,CAAC,CAAC,MAAM,EAAE;IACV,CAAC,CAAC,MAAM,CAAC;QACP,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;QACvB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC3B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;KACrB,CAAC;IACF,CAAC,CAAC,MAAM,CAAC;QACP,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;QACtB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACpB,CAAC;IACF,CAAC,CAAC,MAAM,CAAC;QACP,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;QACzB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC3B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACpB,CAAC;CACH,CAAC,CAAC;AACH,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3B,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,CAAC;CAChD,CAAC,CAAC;AAEH,MAAM,aAAa,GAAe;IAChC,KAAK,EAAE,EAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAC;CACvC,CAAC;AAGF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,MAA2B,EAAE,EAAE;IAC1D,OAAO,WAAW,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;AACnC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,EAAE,GAAW,EAAE,EAAE;IAC9C,MAAM,QAAQ,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;IACrC,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAC1C,OAAO,IAAI,CAAC,MAAM,EAAE,MAAoB,EAAE,aAAa,CAAC,CAAC;AAC3D,CAAC,CAAC","sourcesContent":["import {cosmiconfig} from \"cosmiconfig\";\nimport {defu} from \"defu\";\nimport z from \"zod\";\n\nconst zJixoTask = z.union([\n z.string(),\n z.object({\n type: z.literal(\"file\"),\n name: z.string().optional(),\n filename: z.string(),\n }),\n z.object({\n type: z.literal(\"dir\"),\n dirname: z.string(),\n }),\n z.object({\n type: z.literal(\"prompt\"),\n name: z.string().optional(),\n content: z.string(),\n }),\n]);\nconst zJixoConfig = z.object({\n tasks: z.union([z.array(zJixoTask), zJixoTask]),\n});\n\nconst defaultConfig: JixoConfig = {\n tasks: {type: \"dir\", dirname: \".jixo\"},\n};\nexport type JixoTask = z.output<typeof zJixoTask>;\nexport type JixoConfig = z.output<typeof zJixoConfig>;\nexport const defineConfig = (config: Partial<JixoConfig>) => {\n return zJixoConfig.parse(config);\n};\n\nexport const loadConfig = async (dir: string) => {\n const explorer = cosmiconfig(\"jixo\");\n const loaded = await explorer.search(dir);\n return defu(loaded?.config as JixoConfig, defaultConfig);\n};\n"]}
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,aAAa,CAAC;AACxC,OAAO,EAAC,IAAI,EAAC,MAAM,MAAM,CAAC;AAC1B,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,MAAM,gBAAgB,GAAG,uBAAuB,CAAC;AACjD,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC;CAC/D,CAAC,CAAC;AAEH,MAAM,aAAa,GAAe;IAChC,OAAO,EAAE,gBAAgB;CAC1B,CAAC;AAIF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,MAA2B,EAAE,EAAE;IAC1D,OAAO,WAAW,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;AACnC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,EAAE,GAAW,EAAuB,EAAE;IACnE,MAAM,QAAQ,GAAG,WAAW,CAAC,MAAM,EAAE;QACnC,cAAc,EAAE,QAAQ;KACzB,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAC1C,wFAAwF;IACxF,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,IAAI,EAAE,CAAC,EAAE,aAAa,CAAC,CAAC;AACtE,CAAC,CAAC;AACF,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,CAAC","sourcesContent":["import {cosmiconfig} from \"cosmiconfig\";\nimport {defu} from \"defu\";\nimport z from \"zod\";\nconst DEFAULT_CORE_URL = \"http://localhost:4111\";\nconst zJixoConfig = z.object({\n coreUrl: z.string().url().optional().default(DEFAULT_CORE_URL),\n});\n\nconst defaultConfig: JixoConfig = {\n coreUrl: DEFAULT_CORE_URL,\n};\n\nexport type JixoConfig = z.output<typeof zJixoConfig>;\n\nexport const defineConfig = (config: Partial<JixoConfig>) => {\n return zJixoConfig.parse(config);\n};\n\nexport const loadConfig = async (dir: string): Promise<JixoConfig> => {\n const explorer = cosmiconfig(\"jixo\", {\n searchStrategy: \"global\",\n });\n const loaded = await explorer.search(dir);\n // Use Zod to parse the loaded config, which applies defaults if properties are missing.\n return defu(zJixoConfig.parse(loaded?.config || {}), defaultConfig);\n};\nconsole.log(defineConfig({}));\n"]}
package/dist/env.d.ts CHANGED
@@ -1,17 +1,6 @@
1
1
  export declare const loadJixoEnv: (dir: string) => void;
2
2
  export declare const safeEnv: import("@gaubee/node").DefineEnvChain<"JIXO", import("@gaubee/node").DefineEnv<"JIXO", {
3
- DEEPSEEK_API_KEY: string;
4
- DEEPSEEK_BASE_URL: string;
5
- ANTHROPIC_API_KEY: string;
6
- ANTHROPIC_BASE_URL: string;
7
- OPENAI_API_KEY: string;
8
- OPENAI_BASE_URL: string;
9
- OPENAI_ORGANIZATION: string;
10
- GOOGLE_API_KEY: string;
11
- GOOGLE_BASE_URL: string;
12
- XAI_BASE_URL: string;
13
- XAI_API_KEY: string;
14
- DEEPINFRA_BASE_URL: string;
15
- DEEPINFRA_API_KEY: string;
3
+ CORE_URL: string;
4
+ API_KEY: string;
16
5
  }>>;
17
6
  //# sourceMappingURL=env.d.ts.map
package/dist/env.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../src/env.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,GAAI,KAAK,MAAM,SAKtC,CAAC;AAGF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;GAmBlB,CAAC"}
1
+ {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../src/env.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,GAAI,KAAK,MAAM,SAKtC,CAAC;AAKF,eAAO,MAAM,OAAO;;;GAGlB,CAAC"}
package/dist/env.js CHANGED
@@ -7,20 +7,10 @@ export const loadJixoEnv = (dir) => {
7
7
  process.loadEnvFile(cwdJixoEnvFilepath);
8
8
  }
9
9
  };
10
+ // Load environment from the current working directory when the module is imported.
10
11
  loadJixoEnv(process.cwd());
11
12
  export const safeEnv = defineEnv("JIXO", {
12
- DEEPSEEK_API_KEY: "",
13
- DEEPSEEK_BASE_URL: "",
14
- ANTHROPIC_API_KEY: "",
15
- ANTHROPIC_BASE_URL: "",
16
- OPENAI_API_KEY: "",
17
- OPENAI_BASE_URL: "",
18
- OPENAI_ORGANIZATION: "",
19
- GOOGLE_API_KEY: "",
20
- GOOGLE_BASE_URL: "",
21
- XAI_BASE_URL: "",
22
- XAI_API_KEY: "",
23
- DEEPINFRA_BASE_URL: "",
24
- DEEPINFRA_API_KEY: "",
13
+ CORE_URL: "http://localhost:4111",
14
+ API_KEY: "",
25
15
  });
26
16
  //# sourceMappingURL=env.js.map
package/dist/env.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"env.js","sourceRoot":"","sources":["../src/env.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,GAAW,EAAE,EAAE;IACzC,MAAM,kBAAkB,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC;IACvD,IAAI,EAAE,CAAC,UAAU,CAAC,kBAAkB,CAAC,EAAE,CAAC;QACtC,OAAO,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;IAC1C,CAAC;AACH,CAAC,CAAC;AACF,WAAW,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;AAE3B,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC,MAAM,EAAE;IACvC,gBAAgB,EAAE,EAAE;IACpB,iBAAiB,EAAE,EAAE;IAErB,iBAAiB,EAAE,EAAE;IACrB,kBAAkB,EAAE,EAAE;IAEtB,cAAc,EAAE,EAAE;IAClB,eAAe,EAAE,EAAE;IACnB,mBAAmB,EAAE,EAAE;IAEvB,cAAc,EAAE,EAAE;IAClB,eAAe,EAAE,EAAE;IAEnB,YAAY,EAAE,EAAE;IAChB,WAAW,EAAE,EAAE;IAEf,kBAAkB,EAAE,EAAE;IACtB,iBAAiB,EAAE,EAAE;CACtB,CAAC,CAAC","sourcesContent":["import {defineEnv} from \"@gaubee/node\";\nimport fs from \"node:fs\";\nimport path from \"node:path\";\n\nexport const loadJixoEnv = (dir: string) => {\n const cwdJixoEnvFilepath = path.join(dir, \".jixo.env\");\n if (fs.existsSync(cwdJixoEnvFilepath)) {\n process.loadEnvFile(cwdJixoEnvFilepath);\n }\n};\nloadJixoEnv(process.cwd());\n\nexport const safeEnv = defineEnv(\"JIXO\", {\n DEEPSEEK_API_KEY: \"\",\n DEEPSEEK_BASE_URL: \"\",\n\n ANTHROPIC_API_KEY: \"\",\n ANTHROPIC_BASE_URL: \"\",\n\n OPENAI_API_KEY: \"\",\n OPENAI_BASE_URL: \"\",\n OPENAI_ORGANIZATION: \"\",\n\n GOOGLE_API_KEY: \"\",\n GOOGLE_BASE_URL: \"\",\n\n XAI_BASE_URL: \"\",\n XAI_API_KEY: \"\",\n\n DEEPINFRA_BASE_URL: \"\",\n DEEPINFRA_API_KEY: \"\",\n});\n"]}
1
+ {"version":3,"file":"env.js","sourceRoot":"","sources":["../src/env.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,GAAW,EAAE,EAAE;IACzC,MAAM,kBAAkB,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC;IACvD,IAAI,EAAE,CAAC,UAAU,CAAC,kBAAkB,CAAC,EAAE,CAAC;QACtC,OAAO,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;IAC1C,CAAC;AACH,CAAC,CAAC;AAEF,mFAAmF;AACnF,WAAW,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;AAE3B,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC,MAAM,EAAE;IACvC,QAAQ,EAAE,uBAAuB;IACjC,OAAO,EAAE,EAAE;CACZ,CAAC,CAAC","sourcesContent":["import {defineEnv} from \"@gaubee/node\";\nimport fs from \"node:fs\";\nimport path from \"node:path\";\n\nexport const loadJixoEnv = (dir: string) => {\n const cwdJixoEnvFilepath = path.join(dir, \".jixo.env\");\n if (fs.existsSync(cwdJixoEnvFilepath)) {\n process.loadEnvFile(cwdJixoEnvFilepath);\n }\n};\n\n// Load environment from the current working directory when the module is imported.\nloadJixoEnv(process.cwd());\n\nexport const safeEnv = defineEnv(\"JIXO\", {\n CORE_URL: \"http://localhost:4111\",\n API_KEY: \"\",\n});\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jixo/cli",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "jixo": "./dist/index.js"
@@ -21,33 +21,33 @@
21
21
  "@ai-sdk/openai": "alpha",
22
22
  "@ai-sdk/provider": "alpha",
23
23
  "@ai-sdk/xai": "alpha",
24
- "@gaubee/node": "^0.2.1",
25
- "@gaubee/nodekit": "^0.9.1",
26
- "@gaubee/util": "^0.32.1",
27
- "ai": "alpha",
24
+ "@gaubee/node": "^0.2.2",
25
+ "@gaubee/nodekit": "^0.10.0",
26
+ "@gaubee/util": "^0.34.0",
27
+ "ai": "^4.3.16",
28
28
  "commander": "^14.0.0",
29
29
  "cosmiconfig": "^9.0.0",
30
30
  "debug": "^4.4.1",
31
31
  "defu": "^6.1.4",
32
- "dotenv": "^16.5.0",
32
+ "dotenv": "^17.0.0",
33
33
  "import-meta-ponyfill": "^3.2.2",
34
- "marked": "^15.0.12",
34
+ "marked": "^16.0.0",
35
35
  "ms": "^2.1.3",
36
36
  "semver": "^7.7.2",
37
37
  "ts-pattern": "^5.7.1",
38
38
  "tslib": "^2.8.1",
39
39
  "uuidv7": "^1.0.2",
40
40
  "yargs": "^18.0.0",
41
- "zod": "^3.25.53",
42
- "@jixo/mcp-fs": "^1.3.0",
43
- "@jixo/mcp-pnpm": "^1.3.0"
41
+ "zod": "^3.25.67",
42
+ "@jixo/mcp-fs": "^1.6.0",
43
+ "@jixo/mcp-pnpm": "^1.4.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@parcel/watcher": "^2.5.1",
47
47
  "@types/debug": "^4.1.12",
48
48
  "@types/json-schema": "^7.0.15",
49
49
  "@types/ms": "^2.1.0",
50
- "@types/node": "^22.15.30",
50
+ "@types/node": "^24.0.7",
51
51
  "@types/semver": "^7.7.0",
52
52
  "@types/yargs": "^17.0.33"
53
53
  },