@jixo/cli 0.26.0 → 0.27.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/assets/bundle/google-aistudio.jixo.js +9 -20
- package/bundle/{file-replacer-CZhq6MJJ.js → file-replacer-D6j8Nj7r.js} +5 -26
- package/bundle/{file-replacer-CZhq6MJJ.js.map → file-replacer-D6j8Nj7r.js.map} +1 -1
- package/bundle/file-replacer-DY3KYbf9.js +3 -0
- package/bundle/{gen-prompt-3bZp8K__.js → gen-prompt-DqGDmpRI.js} +2 -2
- package/bundle/{gen-prompt-3bZp8K__.js.map → gen-prompt-DqGDmpRI.js.map} +1 -1
- package/bundle/gen-prompt-Dzy9yRhQ.js +4 -0
- package/bundle/index.js +185 -315
- package/bundle/index.js.map +1 -1
- package/dist/commands/google-aistudio.d.ts.map +1 -1
- package/dist/commands/google-aistudio.js +16 -21
- package/dist/commands/google-aistudio.js.map +1 -1
- package/package.json +3 -3
- package/bundle/file-replacer-CQZSjZXb.js +0 -3
- package/bundle/gen-prompt-IINGP6mf.js +0 -4
|
@@ -1212,9 +1212,7 @@ var init_abort = __esmMin((() => {
|
|
|
1212
1212
|
}));
|
|
1213
1213
|
var init_bigint = __esmMin((() => {}));
|
|
1214
1214
|
var init_date = __esmMin((() => {}));
|
|
1215
|
-
var init_debounce = __esmMin((() => {
|
|
1216
|
-
init_promise$1();
|
|
1217
|
-
}));
|
|
1215
|
+
var init_debounce = __esmMin((() => {}));
|
|
1218
1216
|
var init_decorators_legacy = __esmMin((() => {}));
|
|
1219
1217
|
var init_decorators = __esmMin((() => {}));
|
|
1220
1218
|
var Disposable;
|
|
@@ -1806,6 +1804,8 @@ var readJson;
|
|
|
1806
1804
|
var init_config_file = __esmMin((() => {
|
|
1807
1805
|
init_esm$7();
|
|
1808
1806
|
init__1_0$2();
|
|
1807
|
+
init__1_0$1();
|
|
1808
|
+
init__1_0();
|
|
1809
1809
|
readJson = (path$19, defaultValue) => {
|
|
1810
1810
|
try {
|
|
1811
1811
|
return parse$14(fs.readFileSync(normalizeFilePath(path$19), "utf8"));
|
|
@@ -9799,12 +9799,9 @@ var require_gray_matter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9799
9799
|
}));
|
|
9800
9800
|
var import_gray_matter;
|
|
9801
9801
|
var init_markdown_file = __esmMin((() => {
|
|
9802
|
-
init_esm$7();
|
|
9803
9802
|
import_gray_matter = /* @__PURE__ */ __toESM(require_gray_matter(), 1);
|
|
9804
9803
|
}));
|
|
9805
|
-
var init_fs_entry = __esmMin((() => {
|
|
9806
|
-
init_esm$7();
|
|
9807
|
-
}));
|
|
9804
|
+
var init_fs_entry = __esmMin((() => {}));
|
|
9808
9805
|
var require_ignore = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
9809
9806
|
function makeArray(subject) {
|
|
9810
9807
|
return Array.isArray(subject) ? subject : [subject];
|
|
@@ -11304,23 +11301,16 @@ var init_esm$4 = __esmMin((() => {
|
|
|
11304
11301
|
}));
|
|
11305
11302
|
var import_ignore$1;
|
|
11306
11303
|
var init_ignore$1 = __esmMin((() => {
|
|
11307
|
-
init_esm$7();
|
|
11308
11304
|
require_ignore();
|
|
11309
11305
|
init_esm$4();
|
|
11310
11306
|
}));
|
|
11311
|
-
var init_walk = __esmMin((() => {
|
|
11312
|
-
init_esm$7();
|
|
11313
|
-
}));
|
|
11307
|
+
var init_walk = __esmMin((() => {}));
|
|
11314
11308
|
var init_fs = __esmMin((() => {
|
|
11315
11309
|
init_fs_entry();
|
|
11316
11310
|
init_walk();
|
|
11317
11311
|
}));
|
|
11318
|
-
var init_find_changes_by_message = __esmMin((() => {
|
|
11319
|
-
|
|
11320
|
-
}));
|
|
11321
|
-
var init_find_changes_by_time = __esmMin((() => {
|
|
11322
|
-
init_colors();
|
|
11323
|
-
}));
|
|
11312
|
+
var init_find_changes_by_message = __esmMin((() => {}));
|
|
11313
|
+
var init_find_changes_by_time = __esmMin((() => {}));
|
|
11324
11314
|
var init_git = __esmMin((() => {
|
|
11325
11315
|
init_find_changes_by_message();
|
|
11326
11316
|
init_find_changes_by_time();
|
|
@@ -19923,7 +19913,6 @@ Provide a URL, string, or another Path.`);
|
|
|
19923
19913
|
build$FromState(buildInitial$State({ isGlobal: true }));
|
|
19924
19914
|
}));
|
|
19925
19915
|
var init_shell = __esmMin((() => {
|
|
19926
|
-
init_esm$7();
|
|
19927
19916
|
init_esm$3();
|
|
19928
19917
|
}));
|
|
19929
19918
|
var signals$1;
|
|
@@ -63490,7 +63479,7 @@ function startWsServer(port = 8765) {
|
|
|
63490
63479
|
}
|
|
63491
63480
|
});
|
|
63492
63481
|
server.on("request", (req, res) => {
|
|
63493
|
-
if (req.url?.startsWith("/init-session")) return
|
|
63482
|
+
if (req.url?.startsWith("/init-session")) return initSessionByHttp(req, res);
|
|
63494
63483
|
});
|
|
63495
63484
|
server.on("upgrade", (request, socket, head) => {
|
|
63496
63485
|
wss.handleUpgrade(request, socket, head, (ws) => {
|
|
@@ -63505,7 +63494,7 @@ function startWsServer(port = 8765) {
|
|
|
63505
63494
|
else console.error("HTTP Server error:", err);
|
|
63506
63495
|
});
|
|
63507
63496
|
}
|
|
63508
|
-
const
|
|
63497
|
+
const initSessionByHttp = (req, res) => {
|
|
63509
63498
|
const url$2 = new URL$1(`http://${process.env.HOST ?? "localhost"}${req.url}`);
|
|
63510
63499
|
const workDir = url$2.searchParams.get("workDir");
|
|
63511
63500
|
if (!workDir) return res.writeHead(400).end("workDir is required");
|
|
@@ -270,27 +270,6 @@ const obj_assign_props = /* @__NO_SIDE_EFFECTS__ */ (a$1, b$1) => {
|
|
|
270
270
|
Object.defineProperties(a$1, b_props);
|
|
271
271
|
return a$1;
|
|
272
272
|
};
|
|
273
|
-
/**
|
|
274
|
-
* 获取对象的属性
|
|
275
|
-
*
|
|
276
|
-
* opts.excludeSymbols default is false
|
|
277
|
-
* opts.enumerableOnly default is true
|
|
278
|
-
*/
|
|
279
|
-
const obj_props = ((a$1, opts) => {
|
|
280
|
-
const excludeSymbols = opts?.excludeSymbols ?? false;
|
|
281
|
-
if (opts?.enumerableOnly ?? true) {
|
|
282
|
-
if (excludeSymbols) return Object.keys(a$1);
|
|
283
|
-
const propDesMap = Object.getOwnPropertyDescriptors(a$1);
|
|
284
|
-
const props = [];
|
|
285
|
-
for (const prop in propDesMap) if (propDesMap[prop].enumerable) props.push(prop);
|
|
286
|
-
return props;
|
|
287
|
-
} else {
|
|
288
|
-
const props = Object.getOwnPropertyNames(a$1);
|
|
289
|
-
if (excludeSymbols) return props;
|
|
290
|
-
props.push(...Object.getOwnPropertySymbols(a$1));
|
|
291
|
-
return props;
|
|
292
|
-
}
|
|
293
|
-
});
|
|
294
273
|
|
|
295
274
|
//#endregion
|
|
296
275
|
//#region ../../node_modules/.pnpm/@gaubee+util@0.35.1/node_modules/@gaubee/util/esm/promise-helper.js
|
|
@@ -19772,7 +19751,7 @@ const jixoProvider = async (specifier, options) => {
|
|
|
19772
19751
|
if (specifier === "code_name") return options.codeName;
|
|
19773
19752
|
if (specifier === "datetime") return (/* @__PURE__ */ new Date()).toLocaleString();
|
|
19774
19753
|
if (specifier === "memory") {
|
|
19775
|
-
const { localFileReplacement: localFileReplacement$1 } = await import("./file-replacer-
|
|
19754
|
+
const { localFileReplacement: localFileReplacement$1 } = await import("./file-replacer-DY3KYbf9.js");
|
|
19776
19755
|
const memoryOptions = {
|
|
19777
19756
|
...options,
|
|
19778
19757
|
globOrFilepath: `.jixo/memory/${options.codeName}/*.md`,
|
|
@@ -19787,12 +19766,12 @@ const jixoProvider = async (specifier, options) => {
|
|
|
19787
19766
|
let content = (await GET_JIXO_PROMPT())[specifier];
|
|
19788
19767
|
if (/\.(json|ts)$/.test(specifier)) content = JSON.stringify(content, null, zod_default.int().optional().safeParse(options.params.spaces).data ?? 2);
|
|
19789
19768
|
else {
|
|
19790
|
-
const { _gen_content } = await import("./gen-prompt-
|
|
19769
|
+
const { _gen_content } = await import("./gen-prompt-Dzy9yRhQ.js");
|
|
19791
19770
|
if (!content) throw new Error(`No found jixo specifier: ${specifier}`);
|
|
19792
19771
|
content = await _gen_content(options.codeName, content, options.rootResolver);
|
|
19793
19772
|
}
|
|
19794
19773
|
if (content) {
|
|
19795
|
-
const { useFileOrInject: useFileOrInject$1 } = await import("./file-replacer-
|
|
19774
|
+
const { useFileOrInject: useFileOrInject$1 } = await import("./file-replacer-DY3KYbf9.js");
|
|
19796
19775
|
return useFileOrInject$1(options.mode, `${specifier}.md`, content, options.params);
|
|
19797
19776
|
}
|
|
19798
19777
|
return `<!-- unknown jixo content ${specifier} -->`;
|
|
@@ -19937,5 +19916,5 @@ const localFileReplacement = async (options) => {
|
|
|
19937
19916
|
};
|
|
19938
19917
|
|
|
19939
19918
|
//#endregion
|
|
19940
|
-
export { $ZodAny, $ZodArray, $ZodBoolean, $ZodCustom, $ZodLiteral, $ZodNumber, $ZodObject, $ZodOptional, $ZodString, $ZodType, $ZodUnion, $ZodUnknown, $constructor, N, __commonJS, __export, __require, __toESM, _any, _boolean, _custom, _enum, _number, _string, _unknown, array,
|
|
19941
|
-
//# sourceMappingURL=file-replacer-
|
|
19919
|
+
export { $ZodAny, $ZodArray, $ZodBoolean, $ZodCustom, $ZodLiteral, $ZodNumber, $ZodObject, $ZodOptional, $ZodString, $ZodType, $ZodUnion, $ZodUnknown, $constructor, N, __commonJS, __export, __require, __toESM, _any, _boolean, _custom, _enum, _number, _string, _unknown, array, assignProp, boolean$1 as boolean, clone, createAcontext, createResolver, createResolverByRootFile, defaultParseSearch, defineLazy, delay, extend, func_catch, func_parallel_limit, func_remember, globFilesWithParams, globbySync, handleFileReplacement, isDynamicPattern, iter_map_not_null, literal, localFileReplacement, map_get_or_put, map_get_or_put_async, normalizeFilePath, normalizeParams, number$1 as number, obj_assign_props, object, parse$1 as parse, parseAsync$1 as parseAsync, partial, reactiveFs, require_micromatch, require_src, safeParse$1 as safeParse, safeParseAsync$1 as safeParseAsync, string$1 as string, timmers, toJSONSchema, toPath, traversePathUp, union, useFileOrInject, z, zod_default };
|
|
19920
|
+
//# sourceMappingURL=file-replacer-D6j8Nj7r.js.map
|