@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.
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +39 -64
- package/dist/cli.js.map +1 -1
- package/dist/commands/daemon.d.ts +5 -0
- package/dist/commands/daemon.d.ts.map +1 -0
- package/dist/commands/daemon.js +20 -0
- package/dist/commands/daemon.js.map +1 -0
- package/dist/commands/doctor/config.d.ts.map +1 -1
- package/dist/commands/doctor/config.js +5 -18
- package/dist/commands/doctor/config.js.map +1 -1
- package/dist/commands/doctor/doctor.d.ts +1 -16
- package/dist/commands/doctor/doctor.d.ts.map +1 -1
- package/dist/commands/doctor/doctor.js +85 -52
- package/dist/commands/doctor/doctor.js.map +1 -1
- package/dist/commands/doctor/index.d.ts +1 -1
- package/dist/commands/doctor/index.d.ts.map +1 -1
- package/dist/commands/doctor/index.js +0 -11
- package/dist/commands/doctor/index.js.map +1 -1
- package/dist/commands/doctor/types.d.ts +17 -2
- package/dist/commands/doctor/types.d.ts.map +1 -1
- package/dist/commands/doctor/types.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +29 -52
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/tasks/ai-tools.d.ts +4 -11
- package/dist/commands/tasks/ai-tools.d.ts.map +1 -1
- package/dist/commands/tasks/run-ai-task.d.ts.map +1 -1
- package/dist/commands/tasks/run-ai-task.js +8 -3
- package/dist/commands/tasks/run-ai-task.js.map +1 -1
- package/dist/commands/tasks/run.d.ts +9 -6
- package/dist/commands/tasks/run.d.ts.map +1 -1
- package/dist/commands/tasks/run.js +38 -85
- package/dist/commands/tasks/run.js.map +1 -1
- package/dist/config.d.ts +5 -196
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +9 -21
- package/dist/config.js.map +1 -1
- package/dist/env.d.ts +2 -13
- package/dist/env.d.ts.map +1 -1
- package/dist/env.js +3 -13
- package/dist/env.js.map +1 -1
- 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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
package/dist/config.d.ts.map
CHANGED
|
@@ -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,
|
|
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
|
|
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
|
-
|
|
6
|
+
coreUrl: z.string().url().optional().default(DEFAULT_CORE_URL),
|
|
23
7
|
});
|
|
24
8
|
const defaultConfig = {
|
|
25
|
-
|
|
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
|
-
|
|
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
|
package/dist/config.js.map
CHANGED
|
@@ -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;
|
|
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
|
-
|
|
4
|
-
|
|
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;
|
|
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
|
-
|
|
13
|
-
|
|
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;
|
|
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.
|
|
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.
|
|
25
|
-
"@gaubee/nodekit": "^0.
|
|
26
|
-
"@gaubee/util": "^0.
|
|
27
|
-
"ai": "
|
|
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": "^
|
|
32
|
+
"dotenv": "^17.0.0",
|
|
33
33
|
"import-meta-ponyfill": "^3.2.2",
|
|
34
|
-
"marked": "^
|
|
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.
|
|
42
|
-
"@jixo/mcp-fs": "^1.
|
|
43
|
-
"@jixo/mcp-pnpm": "^1.
|
|
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": "^
|
|
50
|
+
"@types/node": "^24.0.7",
|
|
51
51
|
"@types/semver": "^7.7.0",
|
|
52
52
|
"@types/yargs": "^17.0.33"
|
|
53
53
|
},
|