dsh-multigameassistant 2.0.4 → 2.0.5
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/cordis.patch.yml +1 -1
- package/lib/analyzer.js +132 -25
- package/lib/{chunk-4PNYIZVU.js → chunk-4Q4EH73S.js} +2 -2
- package/lib/{chunk-SA72K6M2.js → chunk-BTT2GBTQ.js} +107 -9
- package/lib/chunk-IOBYH4RN.js +530 -0
- package/lib/{chunk-XHP3SLMO.js → chunk-KHO3SRUJ.js} +289 -5
- package/lib/{chunk-UOVFYP7C.js → chunk-PAJOD6LV.js} +16 -6
- package/lib/{chunk-IZENRXQ6.js → chunk-TD4YFQWE.js} +1115 -351
- package/lib/emulator.js +1 -1
- package/lib/feishu.js +4 -3
- package/lib/game-intel.js +7 -5
- package/lib/gateway.js +3 -2
- package/lib/guard.js +1 -1
- package/lib/intervene.js +4 -3
- package/lib/low-context.js +60 -87
- package/lib/monitor.js +3 -3
- package/lib/notify.js +4 -3
- package/lib/orchestrator.js +89 -23
- package/lib/packs/maa/adg.script.yaml +119 -1
- package/lib/packs/maaend/adg.script.yaml +74 -4
- package/lib/packs/march7th/adg.script.yaml +116 -0
- package/lib/qqbot.js +4 -3
- package/lib/runner.js +3 -3
- package/lib/scheduler.js +1 -1
- package/lib/script-registry.js +18 -11
- package/package.json +1 -1
- package/skills/pipeline-planning.md +8 -5
- package/skills/script-analysis.md +70 -10
- package/web/assets/index-BuStplKb.js +242 -0
- package/web/assets/index-BuStplKb.js.map +1 -0
- package/web/assets/{index-BqeCz6LB.css → index-CSB3B28L.css} +1 -1
- package/web/index.html +2 -2
- package/web/assets/index-CCaVm9ks.js +0 -242
- package/web/assets/index-CCaVm9ks.js.map +0 -1
package/cordis.patch.yml
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# dsh-multigameassistant 2.0.
|
|
1
|
+
# dsh-multigameassistant 2.0.5
|
|
2
2
|
# dsh-multigameassistant: the app's plugins (packages/bundle/cordis.patch.yml, each @adg/<plugin> as dsh-multigameassistant/<plugin>)
|
|
3
3
|
# sharing the dsh with the person's other chats, and the app's agent preset (dsh's standard one with the app's
|
|
4
4
|
# tools and prompts, and compaction as 设置 → 对话压缩 says). No row of dsh is restated.
|
package/lib/analyzer.js
CHANGED
|
@@ -5,14 +5,16 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
MANIFEST_FILE,
|
|
7
7
|
SKILL_FILE,
|
|
8
|
+
guideIssues,
|
|
8
9
|
parseManifest,
|
|
9
10
|
require_dist
|
|
10
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KHO3SRUJ.js";
|
|
11
12
|
import {
|
|
13
|
+
BUILTIN_PACK_VERSION,
|
|
12
14
|
PACKS_CAPABILITY,
|
|
13
15
|
ScriptId,
|
|
14
16
|
external_exports
|
|
15
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-BTT2GBTQ.js";
|
|
16
18
|
import {
|
|
17
19
|
__toESM
|
|
18
20
|
} from "./chunk-2UFLGPDY.js";
|
|
@@ -360,6 +362,7 @@ async function isFile(path) {
|
|
|
360
362
|
// packages/analyzer/lib/drafts.js
|
|
361
363
|
import { cp, mkdir, readdir as readdir2, readFile as readFile3, rename, rm, writeFile } from "node:fs/promises";
|
|
362
364
|
import { join as join3 } from "node:path";
|
|
365
|
+
var WHEN = /^(\d{4}-\d{2}-\d{2}T\d{2})-(\d{2})-(\d{2})-(\d{3})Z$/;
|
|
363
366
|
var DraftStore = class {
|
|
364
367
|
#root;
|
|
365
368
|
#packs;
|
|
@@ -391,6 +394,16 @@ var DraftStore = class {
|
|
|
391
394
|
`);
|
|
392
395
|
return { tasks: parsed.tasks.map((t) => ({ id: t.id, title: t.title })) };
|
|
393
396
|
}
|
|
397
|
+
/**
|
|
398
|
+
* Validate a pack and put it in use: the user's pack from now on, with no draft left waiting.
|
|
399
|
+
* @returns `replaced`: a user pack of this id was there before (now in the history).
|
|
400
|
+
* @throws PackError naming every problem; the pack in use is then untouched.
|
|
401
|
+
*/
|
|
402
|
+
async save(meta, manifest, skill, now = Date.now()) {
|
|
403
|
+
const { tasks } = await this.propose(meta, manifest, skill);
|
|
404
|
+
const { dir, replaced } = await this.accept(meta.packId, now);
|
|
405
|
+
return { dir, tasks, replaced };
|
|
406
|
+
}
|
|
394
407
|
async list() {
|
|
395
408
|
const out = [];
|
|
396
409
|
for (const id of await readdir2(this.#root).catch(() => [])) {
|
|
@@ -405,22 +418,64 @@ var DraftStore = class {
|
|
|
405
418
|
const meta = JSON.parse(await readFile3(join3(dir, "draft.json"), "utf8"));
|
|
406
419
|
return { ...meta, manifest: await readFile3(join3(dir, MANIFEST_FILE), "utf8"), skill: await readFile3(join3(dir, SKILL_FILE), "utf8").catch(() => "") };
|
|
407
420
|
}
|
|
408
|
-
/** Install the draft as the user's pack. @returns the pack directory. */
|
|
421
|
+
/** Install the draft as the user's pack. @returns the pack directory, and whether a user pack was there before. */
|
|
409
422
|
async accept(packId, now = Date.now()) {
|
|
410
423
|
const draft = await this.get(packId);
|
|
411
424
|
parseManifest(draft.manifest);
|
|
412
425
|
const target = join3(this.#packs, packId);
|
|
413
|
-
const previous = await
|
|
414
|
-
if (previous) {
|
|
415
|
-
const aside = join3(this.#history, packId, new Date(now).toISOString().replace(/[:.]/g, "-"));
|
|
416
|
-
await mkdir(join3(this.#history, packId), { recursive: true });
|
|
417
|
-
await cp(target, aside, { recursive: true });
|
|
418
|
-
await rm(target, { recursive: true, force: true });
|
|
419
|
-
}
|
|
426
|
+
const previous = await this.#aside(packId, now);
|
|
420
427
|
await mkdir(this.#packs, { recursive: true });
|
|
421
428
|
await rename(join3(this.#root, packId), target);
|
|
422
429
|
await rm(join3(target, "draft.json"), { force: true });
|
|
423
|
-
return { dir: target, meta: draft };
|
|
430
|
+
return { dir: target, meta: draft, replaced: previous };
|
|
431
|
+
}
|
|
432
|
+
/** Move the user pack in use, if there is one, into the history. @returns whether there was one. */
|
|
433
|
+
async #aside(packId, now) {
|
|
434
|
+
const target = join3(this.#packs, packId);
|
|
435
|
+
if (!await readdir2(target).then(() => true, () => false))
|
|
436
|
+
return false;
|
|
437
|
+
const aside = join3(this.#history, packId, new Date(now).toISOString().replace(/[:.]/g, "-"));
|
|
438
|
+
await mkdir(join3(this.#history, packId), { recursive: true });
|
|
439
|
+
await cp(target, aside, { recursive: true });
|
|
440
|
+
await rm(target, { recursive: true, force: true });
|
|
441
|
+
return true;
|
|
442
|
+
}
|
|
443
|
+
/** The versions of a user pack that were replaced, the last replaced first. */
|
|
444
|
+
async history(packId) {
|
|
445
|
+
const out = [];
|
|
446
|
+
for (const id of await readdir2(join3(this.#history, packId)).catch(() => [])) {
|
|
447
|
+
const when = WHEN.exec(id);
|
|
448
|
+
const manifest = when === null ? void 0 : await readFile3(join3(this.#history, packId, id, MANIFEST_FILE), "utf8").catch(() => void 0);
|
|
449
|
+
if (when !== null && manifest !== void 0)
|
|
450
|
+
out.push({ id, at: Date.parse(`${when[1]}:${when[2]}:${when[3]}.${when[4]}Z`), manifest });
|
|
451
|
+
}
|
|
452
|
+
return out.sort((a, b) => b.at - a.at);
|
|
453
|
+
}
|
|
454
|
+
/**
|
|
455
|
+
* Put a replaced version back in use. The pack in use now goes into the
|
|
456
|
+
* history in its place, so this can be undone the same way.
|
|
457
|
+
* @throws Error when there is no such version, or it no longer fits the schema (nothing is changed then).
|
|
458
|
+
*/
|
|
459
|
+
async restore(packId, versionId, now = Date.now()) {
|
|
460
|
+
const from = join3(this.#history, packId, versionId);
|
|
461
|
+
const manifest = WHEN.test(versionId) ? await readFile3(join3(from, MANIFEST_FILE), "utf8").catch(() => void 0) : void 0;
|
|
462
|
+
if (manifest === void 0)
|
|
463
|
+
throw new Error(`\u5386\u53F2\u91CC\u6CA1\u6709\u811A\u672C\u5305 ${packId} \u7684\u8FD9\u4E2A\u7248\u672C\uFF1A${versionId}`);
|
|
464
|
+
parseManifest(manifest, `\u5386\u53F2\u7248\u672C ${packId}/${MANIFEST_FILE}`);
|
|
465
|
+
const target = join3(this.#packs, packId);
|
|
466
|
+
await this.#aside(packId, now);
|
|
467
|
+
await mkdir(this.#packs, { recursive: true });
|
|
468
|
+
await rename(from, target);
|
|
469
|
+
return { dir: target };
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
* Stop using the user pack: it goes into the history, and the built-in pack
|
|
473
|
+
* of the same id (when there is one) is the pack again.
|
|
474
|
+
* @throws Error when there is no user pack of this id.
|
|
475
|
+
*/
|
|
476
|
+
async discard(packId, now = Date.now()) {
|
|
477
|
+
if (!await this.#aside(packId, now))
|
|
478
|
+
throw new Error(`\u6CA1\u6709\u81EA\u5DF1\u5199\u7684\u811A\u672C\u5305 ${packId}`);
|
|
424
479
|
}
|
|
425
480
|
async reject(packId) {
|
|
426
481
|
await rm(join3(this.#root, packId), { recursive: true, force: true });
|
|
@@ -467,6 +522,17 @@ var AdgAnalyzer = class extends Service {
|
|
|
467
522
|
this.drafts = new DraftStore(library.dataDir);
|
|
468
523
|
const drafts = this.drafts;
|
|
469
524
|
const changed = (packId) => ctx.get("adgGateway")?.broadcast("packs/changed", packId === void 0 ? {} : { packId });
|
|
525
|
+
const use = async (packId, scriptId) => {
|
|
526
|
+
await library.reloadPacks();
|
|
527
|
+
try {
|
|
528
|
+
await library.attachPack(scriptId, packId);
|
|
529
|
+
return void 0;
|
|
530
|
+
} catch (error) {
|
|
531
|
+
const problem = error instanceof Error ? error.message : String(error);
|
|
532
|
+
log.warn(`pack ${packId} saved but could not attach it to ${scriptId}: ${problem}`);
|
|
533
|
+
return problem;
|
|
534
|
+
}
|
|
535
|
+
};
|
|
470
536
|
ctx.inject(["skills", "adgGateway"], (scoped) => {
|
|
471
537
|
let disposers = [];
|
|
472
538
|
const register = async () => {
|
|
@@ -513,7 +579,7 @@ var AdgAnalyzer = class extends Service {
|
|
|
513
579
|
};
|
|
514
580
|
ctx.inject(["adgGateway"], (gateway) => gateway.adgGateway.agentPart("adg-analyzer tools", (agent) => {
|
|
515
581
|
const registered = [];
|
|
516
|
-
for (const tool of analyzerTools({ library, drafts, approve, ready: scripts.ready, changed }))
|
|
582
|
+
for (const tool of analyzerTools({ library, drafts, approve, ready: scripts.ready, changed, use }))
|
|
517
583
|
registered.push(agent.tools.register({ ...tool, execute: async (args, exec) => {
|
|
518
584
|
await ctx.get("adgGateway")?.guardTool(exec);
|
|
519
585
|
return tool.execute(args, exec);
|
|
@@ -538,12 +604,7 @@ var AdgAnalyzer = class extends Service {
|
|
|
538
604
|
await scripts.ready;
|
|
539
605
|
const { packId } = params;
|
|
540
606
|
const { dir, meta } = await drafts.accept(packId);
|
|
541
|
-
await
|
|
542
|
-
try {
|
|
543
|
-
await library.attachPack(meta.scriptId, packId);
|
|
544
|
-
} catch (error) {
|
|
545
|
-
log.warn(`accepted pack ${packId} but could not attach it to ${meta.scriptId}: ${error instanceof Error ? error.message : String(error)}`);
|
|
546
|
-
}
|
|
607
|
+
await use(packId, meta.scriptId);
|
|
547
608
|
changed(packId);
|
|
548
609
|
return { packId, dir };
|
|
549
610
|
},
|
|
@@ -552,6 +613,39 @@ var AdgAnalyzer = class extends Service {
|
|
|
552
613
|
await drafts.reject(packId);
|
|
553
614
|
changed(packId);
|
|
554
615
|
return {};
|
|
616
|
+
},
|
|
617
|
+
"packs/history": async (params) => {
|
|
618
|
+
await scripts.ready;
|
|
619
|
+
const { packId } = params;
|
|
620
|
+
const tasksOf = (manifest) => {
|
|
621
|
+
try {
|
|
622
|
+
return parseManifest(manifest).tasks.map((t) => ({ id: t.id, title: t.title }));
|
|
623
|
+
} catch {
|
|
624
|
+
return [];
|
|
625
|
+
}
|
|
626
|
+
};
|
|
627
|
+
const items = (await drafts.history(packId)).map((v) => ({ id: v.id, at: v.at, tasks: tasksOf(v.manifest) }));
|
|
628
|
+
const over = library.pack(packId)?.over;
|
|
629
|
+
if (over !== void 0)
|
|
630
|
+
items.push({ id: BUILTIN_PACK_VERSION, builtin: true, tasks: over.manifest.tasks.map((t) => ({ id: t.id, title: t.title })) });
|
|
631
|
+
return { items };
|
|
632
|
+
},
|
|
633
|
+
"packs/restore": async (params) => {
|
|
634
|
+
await scripts.ready;
|
|
635
|
+
const { packId, version } = params;
|
|
636
|
+
if (version === BUILTIN_PACK_VERSION) {
|
|
637
|
+
if (library.pack(packId)?.over === void 0)
|
|
638
|
+
throw new Error(`${packId} \u6CA1\u6709\u5185\u7F6E\u7684\u811A\u672C\u5305\u53EF\u4EE5\u6062\u590D`);
|
|
639
|
+
await drafts.discard(packId);
|
|
640
|
+
} else {
|
|
641
|
+
await drafts.restore(packId, version);
|
|
642
|
+
}
|
|
643
|
+
await library.reloadPacks();
|
|
644
|
+
for (const script of library.list().scripts)
|
|
645
|
+
if (script.packId === packId)
|
|
646
|
+
await use(packId, script.id);
|
|
647
|
+
changed(packId);
|
|
648
|
+
return {};
|
|
555
649
|
}
|
|
556
650
|
}
|
|
557
651
|
});
|
|
@@ -676,7 +770,7 @@ function analyzerTools(deps) {
|
|
|
676
770
|
}),
|
|
677
771
|
tool({
|
|
678
772
|
name: "pack_reviewed",
|
|
679
|
-
description: "\u811A\u672C\u66F4\u65B0\u540E\u68C0\u67E5\u8FC7\u811A\u672C\u5305\u3001\u786E\u8BA4\u4E0D\u7528\u6539\u65F6\u8C03\u7528\uFF1A\u8BB0\u4E0B\u811A\u672C\u5305\u5DF2\u7ECF\u5BF9\u7167\u73B0\u5728\u7684\u7248\u672C\u68C0\u67E5\u8FC7\uFF0C\u4E0D\u518D\u63D0\u9192\u3002\u8981\u6539\u5C31\u7528 pack_propose \
|
|
773
|
+
description: "\u811A\u672C\u66F4\u65B0\u540E\u68C0\u67E5\u8FC7\u811A\u672C\u5305\u3001\u786E\u8BA4\u4E0D\u7528\u6539\u65F6\u8C03\u7528\uFF1A\u8BB0\u4E0B\u811A\u672C\u5305\u5DF2\u7ECF\u5BF9\u7167\u73B0\u5728\u7684\u7248\u672C\u68C0\u67E5\u8FC7\uFF0C\u4E0D\u518D\u63D0\u9192\u3002\u8981\u6539\u5C31\u7528 pack_propose \u4FDD\u5B58\uFF0C\u4FDD\u5B58\u65F6\u4F1A\u81EA\u52A8\u8BB0\u4E0B\uFF0C\u4E0D\u7528\u8C03\u7528\u8FD9\u4E2A\u3002",
|
|
680
774
|
properties: {
|
|
681
775
|
id,
|
|
682
776
|
reason: { type: "string", description: "\u4E3A\u4EC0\u4E48\u4E0D\u7528\u6539\uFF08\u4F1A\u544A\u8BC9\u7528\u6237\uFF09\uFF0C\u4F8B\u5982\u300C\u8FD9\u51E0\u4E2A\u7248\u672C\u53EA\u4FEE\u4E86\u8BC6\u522B\u95EE\u9898\uFF0C\u4EFB\u52A1\u3001\u914D\u7F6E\u548C\u65E5\u5FD7\u90FD\u6CA1\u53D8\u300D\u3002" }
|
|
@@ -692,12 +786,12 @@ function analyzerTools(deps) {
|
|
|
692
786
|
}),
|
|
693
787
|
tool({
|
|
694
788
|
name: "pack_propose",
|
|
695
|
-
description: "\
|
|
789
|
+
description: "\u4FDD\u5B58\u811A\u672C\u5305\uFF08adg.script.yaml \u548C SKILL.md\uFF09\uFF0C\u76F4\u63A5\u751F\u6548\uFF0C\u4E0D\u7528\u7528\u6237\u518D\u786E\u8BA4\uFF1A\u65B0\u5199\u4E00\u4EFD\uFF0C\u6216\u8005\u7528\u539F\u6765\u7684 id \u6539\u5DF2\u6709\u7684\u4E00\u4EFD\uFF08\u5185\u7F6E\u7684\u3001\u7528\u6237\u786E\u8BA4\u8FC7\u7684\u90FD\u53EF\u4EE5\uFF1B\u88AB\u66FF\u6362\u7684\u90A3\u4E00\u7248\u7559\u5728\u5386\u53F2\u91CC\uFF09\u3002\u4F1A\u6309 schema \u6821\u9A8C\uFF0C\u5E76\u68C0\u67E5 manifest \u91CC\u7ED9\u7528\u6237\u770B\u7684\u4F7F\u7528\u8BF4\u660E\uFF08guide\u3001\u4EFB\u52A1\u548C\u53C2\u6570\u7684 description\u3001\u4E34\u65F6\u4FEE\u6539\u7684 note\uFF09\uFF1A\u7F3A\u4E86\u6216\u6DF7\u8FDB\u4E86\u7ED9 agent \u7684\u5185\u5BB9\uFF08\u5DE5\u5177\u540D\u3001\u811A\u672C\u5305\u5B57\u6BB5\u3001\u5360\u4F4D\u7B26\u3001\u6838\u9A8C\u4F9D\u636E\u3001\u5F85\u786E\u8BA4\uFF09\u90FD\u4F1A\u5931\u8D25\u5E76\u8FD4\u56DE\u5177\u4F53\u4F4D\u7F6E\uFF0C\u811A\u672C\u5305\u4FDD\u6301\u539F\u6837\uFF0C\u4FEE\u6B63\u540E\u91CD\u65B0\u63D0\u4EA4\uFF1B\u901A\u8FC7\u540E\u8FD9\u4E2A\u811A\u672C\u9A6C\u4E0A\u7528\u65B0\u7684\u811A\u672C\u5305\uFF0C\u4E4B\u540E\u7684 script_run\u3001script_tasks \u90FD\u6309\u5B83\u6765\u3002\u4E0D\u4F1A\u4FEE\u6539\u811A\u672C\u672C\u8EAB\u3002",
|
|
696
790
|
properties: {
|
|
697
791
|
pack_id: { type: "string", description: "\u811A\u672C\u5305 id\uFF08\u4E0E manifest \u91CC\u7684 id \u76F8\u540C\uFF1B\u6539\u8FDB\u5DF2\u6709\u811A\u672C\u5305\u65F6\u7528\u539F id\uFF09\u3002" },
|
|
698
792
|
script_id: { type: "string", description: "\u8FD9\u4E2A\u5305\u63CF\u8FF0\u7684\u811A\u672C\u5E93\u91CC\u7684\u811A\u672C id\u3002" },
|
|
699
|
-
manifest: { type: "string", description: "adg.script.yaml \u7684\u5B8C\u6574\u5185\u5BB9\u3002" },
|
|
700
|
-
skill: { type: "string", description: "SKILL.md \u7684\u5B8C\u6574\u5185\u5BB9\uFF08\u4EE5 name / description frontmatter \u5F00\u5934\uFF09\u3002" },
|
|
793
|
+
manifest: { type: "string", description: "adg.script.yaml \u7684\u5B8C\u6574\u5185\u5BB9\uFF0C\u5305\u62EC guide\uFF08\u7ED9\u7528\u6237\u770B\u7684\u4F7F\u7528\u8BF4\u660E\uFF0C\u811A\u672C\u9875\u663E\u793A\uFF09\u3002" },
|
|
794
|
+
skill: { type: "string", description: "SKILL.md \u7684\u5B8C\u6574\u5185\u5BB9\uFF08\u4EE5 name / description frontmatter \u5F00\u5934\uFF09\uFF1A\u53EA\u7ED9 agent \u770B\u7684\u5907\u6CE8\u2014\u2014\u7528\u6237\u8BF4\u6CD5\u600E\u4E48\u5BF9\u5E94\u4EFB\u52A1\u3001\u64CD\u4F5C\u8981\u70B9\u3001\u6838\u9A8C\u4F9D\u636E\u3001\u9650\u5236\u3001\u5F85\u786E\u8BA4\u3002" },
|
|
701
795
|
summary: { type: "string", description: "\u7ED9\u7528\u6237\u770B\u7684\u4E00\u6BB5\u8BDD\uFF1A\u505A\u4E86\u4EC0\u4E48\u3001\u4F9D\u636E\u662F\u4EC0\u4E48\u3001\u54EA\u4E9B\u8FD8\u5F85\u786E\u8BA4\u3002" },
|
|
702
796
|
docs: {
|
|
703
797
|
type: "array",
|
|
@@ -708,7 +802,7 @@ function analyzerTools(deps) {
|
|
|
708
802
|
},
|
|
709
803
|
required: ["pack_id", "script_id", "manifest", "skill", "summary", "docs"],
|
|
710
804
|
kind: "edit",
|
|
711
|
-
title: (a) => `\
|
|
805
|
+
title: (a) => `\u4FDD\u5B58\u811A\u672C\u5305\uFF1A${String(a["pack_id"] ?? "")}`,
|
|
712
806
|
execute: async (args, exec) => {
|
|
713
807
|
const a = parse(external_exports.object({
|
|
714
808
|
pack_id: ScriptId,
|
|
@@ -724,7 +818,11 @@ function analyzerTools(deps) {
|
|
|
724
818
|
throw new Error("\u5148\u8BFB\u9879\u76EE\u7684\u6587\u6863\u518D\u5199\u811A\u672C\u5305\uFF1Adocs \u91CC\u5199\u51FA\u8BFB\u8FC7\u7684\u6587\u6863\uFF08\u51FA\u5904\u548C\u5F97\u5230\u4E86\u4EC0\u4E48\uFF09\uFF1B\u786E\u5B9E\u627E\u4E0D\u5230\u6587\u6863\u65F6\u7528 no_docs \u8BF4\u660E\u627E\u8FC7\u54EA\u4E9B\u5730\u65B9\uFF08\u811A\u672C\u76EE\u5F55\u3001\u4ED3\u5E93 README\u3001Wiki\u3001\u6587\u6863\u7AD9\uFF09");
|
|
725
819
|
}
|
|
726
820
|
deps.library.get(a.script_id);
|
|
727
|
-
const
|
|
821
|
+
const issues = guideIssues(parseManifest(a.manifest, `${a.pack_id}/${MANIFEST_FILE}`));
|
|
822
|
+
if (issues.length > 0)
|
|
823
|
+
throw new Error(`\u4F7F\u7528\u8BF4\u660E\u8FD8\u8981\u6539\uFF08\u6309 script-analysis \u6280\u80FD\u300C\u4F7F\u7528\u8BF4\u660E\u300D\u4E00\u8282\uFF09\uFF1A
|
|
824
|
+
- ${issues.join("\n- ")}`);
|
|
825
|
+
const saved = await deps.drafts.save({
|
|
728
826
|
packId: a.pack_id,
|
|
729
827
|
scriptId: a.script_id,
|
|
730
828
|
proposedAt: Date.now(),
|
|
@@ -733,8 +831,17 @@ function analyzerTools(deps) {
|
|
|
733
831
|
...docs.length > 0 || a.no_docs == null ? {} : { noDocs: a.no_docs.trim() },
|
|
734
832
|
...exec.agent === void 0 ? {} : { sessionId: exec.agent.session.id }
|
|
735
833
|
}, a.manifest, a.skill);
|
|
834
|
+
const problem = await deps.use(a.pack_id, a.script_id);
|
|
736
835
|
deps.changed(a.pack_id);
|
|
737
|
-
return {
|
|
836
|
+
return {
|
|
837
|
+
ok: true,
|
|
838
|
+
pack_id: a.pack_id,
|
|
839
|
+
tasks: saved.tasks,
|
|
840
|
+
in_use: problem === void 0,
|
|
841
|
+
replaced: saved.replaced,
|
|
842
|
+
...problem === void 0 ? {} : { problem },
|
|
843
|
+
next: problem === void 0 ? `\u811A\u672C\u5305\u5DF2\u7ECF\u4FDD\u5B58\u5E76\u751F\u6548${saved.replaced ? "\uFF08\u4E4B\u524D\u7684\u7248\u672C\u7559\u5728\u5386\u53F2\u91CC\uFF09" : ""}\uFF0C\u4E0D\u7528\u7528\u6237\u786E\u8BA4\u3002\u56DE\u590D\u91CC\u544A\u8BC9\u7528\u6237\u6539\u4E86\u4EC0\u4E48\u3001\u4F9D\u636E\u4E86\u54EA\u4E9B\u6587\u6863\u3001\u54EA\u4E9B\u8FD8\u5F85\u786E\u8BA4\u3002` : `\u811A\u672C\u5305\u5DF2\u7ECF\u4FDD\u5B58\uFF0C\u4F46\u6CA1\u80FD\u63A5\u5230\u811A\u672C ${a.script_id} \u4E0A\uFF1A${problem}\u3002\u628A\u8FD9\u4E2A\u539F\u56E0\u544A\u8BC9\u7528\u6237\u3002`
|
|
844
|
+
};
|
|
738
845
|
}
|
|
739
846
|
})
|
|
740
847
|
];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __adgCreateRequire } from 'node:module'; import { dirname as __adgDirname } from 'node:path'; import { fileURLToPath as __adgFileURLToPath } from 'node:url'; const require = __adgCreateRequire(import.meta.url); const __filename = __adgFileURLToPath(import.meta.url); const __dirname = __adgDirname(__filename);
|
|
2
2
|
import {
|
|
3
3
|
convertRecord
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TD4YFQWE.js";
|
|
5
5
|
import {
|
|
6
6
|
writeFileAtomic
|
|
7
7
|
} from "./chunk-CCAB6XXZ.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
threadMessage,
|
|
22
22
|
threadReminder,
|
|
23
23
|
threadsBetween
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-BTT2GBTQ.js";
|
|
25
25
|
|
|
26
26
|
// packages/notify/lib/index.js
|
|
27
27
|
import { readFile } from "node:fs/promises";
|
|
@@ -14708,6 +14708,57 @@ var PackSummary = external_exports.object({
|
|
|
14708
14708
|
/** Problems loading the pack, if any; the pack is skipped. */
|
|
14709
14709
|
error: external_exports.string().optional()
|
|
14710
14710
|
});
|
|
14711
|
+
var PackGuide = external_exports.object({
|
|
14712
|
+
packId: external_exports.string(),
|
|
14713
|
+
name: external_exports.string(),
|
|
14714
|
+
builtin: external_exports.boolean(),
|
|
14715
|
+
/** The pack has a written guide; without one only its tasks and run changes are known. */
|
|
14716
|
+
written: external_exports.boolean(),
|
|
14717
|
+
overview: external_exports.string().optional(),
|
|
14718
|
+
tasks: external_exports.array(external_exports.object({
|
|
14719
|
+
id: external_exports.string(),
|
|
14720
|
+
title: external_exports.string(),
|
|
14721
|
+
description: external_exports.string().optional(),
|
|
14722
|
+
utterances: external_exports.array(external_exports.string()),
|
|
14723
|
+
/** `desktop` takes the mouse and keyboard; `adb` an emulator; `window` the game's window in the background. */
|
|
14724
|
+
input: external_exports.enum(["desktop", "window", "adb", "none"]),
|
|
14725
|
+
expectedDuration: external_exports.string().optional(),
|
|
14726
|
+
params: external_exports.array(external_exports.object({
|
|
14727
|
+
name: external_exports.string(),
|
|
14728
|
+
type: external_exports.enum(["string", "integer", "number", "boolean"]),
|
|
14729
|
+
description: external_exports.string().optional(),
|
|
14730
|
+
default: external_exports.string().optional(),
|
|
14731
|
+
/** Its allowed values: listed, or where they come from. */
|
|
14732
|
+
values: external_exports.string().optional()
|
|
14733
|
+
}))
|
|
14734
|
+
})),
|
|
14735
|
+
setup: external_exports.array(external_exports.string()),
|
|
14736
|
+
checks: external_exports.array(external_exports.string()),
|
|
14737
|
+
features: external_exports.array(external_exports.object({
|
|
14738
|
+
title: external_exports.string(),
|
|
14739
|
+
description: external_exports.string().optional(),
|
|
14740
|
+
enable: external_exports.string(),
|
|
14741
|
+
config: external_exports.array(external_exports.object({ file: external_exports.string(), key: external_exports.string(), value: external_exports.string() })),
|
|
14742
|
+
/** Titles of the tasks that do it. */
|
|
14743
|
+
tasks: external_exports.array(external_exports.string())
|
|
14744
|
+
})),
|
|
14745
|
+
config: external_exports.array(external_exports.object({
|
|
14746
|
+
file: external_exports.string(),
|
|
14747
|
+
about: external_exports.string().optional(),
|
|
14748
|
+
keys: external_exports.array(external_exports.object({ key: external_exports.string(), meaning: external_exports.string(), values: external_exports.string().optional(), default: external_exports.string().optional(), advice: external_exports.string().optional() })),
|
|
14749
|
+
/** What runs set in it for themselves; the file is put back after each run. */
|
|
14750
|
+
changes: external_exports.array(external_exports.object({
|
|
14751
|
+
key: external_exports.string(),
|
|
14752
|
+
value: external_exports.string(),
|
|
14753
|
+
note: external_exports.string().optional(),
|
|
14754
|
+
/** Only then (e.g. 本应用启动了模拟器时). */
|
|
14755
|
+
when: external_exports.string().optional(),
|
|
14756
|
+
/** Titles of the tasks that make it. */
|
|
14757
|
+
tasks: external_exports.array(external_exports.string())
|
|
14758
|
+
}))
|
|
14759
|
+
})),
|
|
14760
|
+
troubleshooting: external_exports.array(external_exports.object({ problem: external_exports.string(), cause: external_exports.string().optional(), fix: external_exports.string() }))
|
|
14761
|
+
});
|
|
14711
14762
|
var MirrorLookup = external_exports.object({
|
|
14712
14763
|
rid: external_exports.string(),
|
|
14713
14764
|
version: external_exports.string(),
|
|
@@ -14815,6 +14866,12 @@ var ScriptRequests = {
|
|
|
14815
14866
|
params: ById,
|
|
14816
14867
|
result: ScriptInfo
|
|
14817
14868
|
},
|
|
14869
|
+
/** The script's user guide, from its pack; null without a pack. */
|
|
14870
|
+
"scripts/guide": {
|
|
14871
|
+
capability: SCRIPTS_CAPABILITY,
|
|
14872
|
+
params: ById,
|
|
14873
|
+
result: external_exports.object({ guide: PackGuide.nullable() })
|
|
14874
|
+
},
|
|
14818
14875
|
/** Search GitHub repositories; packs whose repo matches are marked. */
|
|
14819
14876
|
"scripts/search": {
|
|
14820
14877
|
capability: SCRIPTS_CAPABILITY,
|
|
@@ -15058,7 +15115,29 @@ var PackDraft = external_exports.object({
|
|
|
15058
15115
|
/** Tasks the draft declares. */
|
|
15059
15116
|
tasks: external_exports.array(external_exports.object({ id: external_exports.string(), title: external_exports.string() }))
|
|
15060
15117
|
});
|
|
15118
|
+
var PackVersion = external_exports.object({
|
|
15119
|
+
/** What `packs/restore` takes; `builtin` for the built-in pack. */
|
|
15120
|
+
id: external_exports.string(),
|
|
15121
|
+
/** When it was replaced (absent for the built-in pack). */
|
|
15122
|
+
at: external_exports.number().optional(),
|
|
15123
|
+
builtin: external_exports.boolean().optional(),
|
|
15124
|
+
/** Tasks it declares. */
|
|
15125
|
+
tasks: external_exports.array(external_exports.object({ id: external_exports.string(), title: external_exports.string() }))
|
|
15126
|
+
});
|
|
15127
|
+
var BUILTIN_PACK_VERSION = "builtin";
|
|
15061
15128
|
var PackRequests = {
|
|
15129
|
+
/** What a pack can go back to, the last replaced first, the built-in pack (if a user pack is used instead of it) last. */
|
|
15130
|
+
"packs/history": {
|
|
15131
|
+
capability: PACKS_CAPABILITY,
|
|
15132
|
+
params: external_exports.object({ packId: ScriptId }),
|
|
15133
|
+
result: external_exports.object({ items: external_exports.array(PackVersion) })
|
|
15134
|
+
},
|
|
15135
|
+
/** Put that version back in use. The pack in use now goes into the history, so this can be undone. */
|
|
15136
|
+
"packs/restore": {
|
|
15137
|
+
capability: PACKS_CAPABILITY,
|
|
15138
|
+
params: external_exports.object({ packId: ScriptId, version: external_exports.string().min(1).max(64) }),
|
|
15139
|
+
result: external_exports.object({})
|
|
15140
|
+
},
|
|
15062
15141
|
"packs/drafts": {
|
|
15063
15142
|
capability: PACKS_CAPABILITY,
|
|
15064
15143
|
params: external_exports.object({ scriptId: ScriptId.optional() }),
|
|
@@ -16156,10 +16235,10 @@ var PERMISSIONS_CAPABILITY = "permissions";
|
|
|
16156
16235
|
var PermissionMode = external_exports.enum(["ask", "full"]);
|
|
16157
16236
|
var AreaPolicy = external_exports.enum(["default", "allow", "ask", "deny"]);
|
|
16158
16237
|
var AGENT_AREAS = [
|
|
16159
|
-
{ id: "pipelines-edit", title: "\u7F16\u8F91\u6D41\u6C34\u7EBF\u548C\u5B9A\u65F6", description: "\u8D77\u8349\
|
|
16238
|
+
{ id: "pipelines-edit", title: "\u7F16\u8F91\u6D41\u6C34\u7EBF\u548C\u5B9A\u65F6", description: "\u8D77\u8349\u6D41\u6C34\u7EBF\uFF0C\u300C\u7F16\u6392\u300D\u76F4\u63A5\u4FEE\u6539\u3001\u4FDD\u5B58\u6D41\u6C34\u7EBF\uFF08pipeline_save\uFF09\uFF0C\u8BBE\u5B9A\u65F6\u95F4\uFF08schedule_set\uFF09\uFF0C\u4EE5\u53CA dsh \u81EA\u5DF1\u7684\u5B9A\u65F6\u4EFB\u52A1\u3002", tools: ["pipeline_draft", "pipeline_save", "schedule_set", "schedule_create", "schedule_update", "schedule_delete"] },
|
|
16160
16239
|
{ id: "run", title: "\u8FD0\u884C\u6D41\u6C34\u7EBF\u548C\u811A\u672C", description: "\u542F\u52A8\u3001\u505C\u6B62\u6D41\u6C34\u7EBF\u548C\u811A\u672C\u4EFB\u52A1\u3002", tools: ["pipeline_run", "script_run", "script_stop"] },
|
|
16161
16240
|
{ id: "scripts-config", title: "\u6539\u811A\u672C\u914D\u7F6E", description: "\u4FEE\u6539\u811A\u672C\u7684\u914D\u7F6E\u526F\u672C\u3001\u5BFC\u5165\u914D\u7F6E\u3001\u65B0\u5EFA\u9009\u9879\u3001\u6253\u5F00\u811A\u672C\u81EA\u5DF1\u7684\u8BBE\u7F6E\u754C\u9762\u3001\u8BBE\u7F6E\u6E38\u620F\u4F4D\u7F6E\u3002", tools: ["script_config_set", "script_config_import", "script_choice_create", "script_settings", "game_path_set"] },
|
|
16162
|
-
{ id: "scripts-install", title: "\u5B89\u88C5\u3001\u66F4\u65B0\u3001\u5220\u9664\u811A\u672C", description: "\u4ECE GitHub \u5B89\u88C5\u3001\u66F4\u65B0\u3001\u56DE\u6EDA\u3001\u5220\u9664\u811A\u672C\uFF0C\u8FD0\u884C\u811A\u672C\u7684\u5B89\u88C5\u7A0B\u5E8F\uFF0C\u5BFC\u5165\u672C\u5730\u811A\u672C\uFF0C\u4FEE\u590D\u8FD0\u884C\u73AF\u5883\uFF0C\
|
|
16241
|
+
{ id: "scripts-install", title: "\u5B89\u88C5\u3001\u66F4\u65B0\u3001\u5220\u9664\u811A\u672C", description: "\u4ECE GitHub \u5B89\u88C5\u3001\u66F4\u65B0\u3001\u56DE\u6EDA\u3001\u5220\u9664\u811A\u672C\uFF0C\u8FD0\u884C\u811A\u672C\u7684\u5B89\u88C5\u7A0B\u5E8F\uFF0C\u5BFC\u5165\u672C\u5730\u811A\u672C\uFF0C\u4FEE\u590D\u8FD0\u884C\u73AF\u5883\uFF0C\u5199\u3001\u6539\u811A\u672C\u5305\uFF08pack_propose\uFF0C\u76F4\u63A5\u751F\u6548\uFF09\u3002", tools: ["script_install", "script_update", "script_rollback", "script_remove", "script_setup_run", "script_import", "script_env_fix", "pack_propose"] },
|
|
16163
16242
|
{ id: "screen", title: "\u64CD\u4F5C\u5C4F\u5E55\u548C\u6A21\u62DF\u5668", description: "\u5728\u6E38\u620F\u7A97\u53E3\u6216\u6A21\u62DF\u5668\u91CC\u70B9\u51FB\u3001\u8F93\u5165\u3001\u6309\u952E\u3001\u6ED1\u52A8\u3001\u5207\u6362\u7A97\u53E3\uFF08\u622A\u56FE\u4E0D\u7B97\uFF09\u3002", tools: ["screen_tap", "screen_type", "screen_key", "screen_scroll", "screen_swipe", "window_focus"] },
|
|
16164
16243
|
{ id: "games", title: "\u542F\u52A8\u3001\u5173\u95ED\u6E38\u620F\u548C\u6A21\u62DF\u5668", description: "\u6253\u5F00\u3001\u5173\u6389\u6E38\u620F\uFF0C\u542F\u52A8\u3001\u5173\u95ED\u3001\u5B89\u88C5\u3001\u8BBE\u7F6E\u6A21\u62DF\u5668\u3002", tools: ["game_launch", "game_close", "emulator_start", "emulator_stop", "emulator_install", "emulator_configure"] },
|
|
16165
16244
|
{ id: "game-records", title: "\u8BB0\u5F55\u6D3B\u52A8\u3001\u6DFB\u52A0\u6E38\u620F", description: "\u628A\u8BFB\u5230\u7684\u6D3B\u52A8\u5199\u8FDB\u65E5\u5386\uFF0C\u66FF\u4F60\u6DFB\u52A0\u3001\u4FEE\u6539\u6216\u53BB\u6389\u6D3B\u52A8\uFF0C\u7ED9\u65B0\u6E38\u620F\u5EFA\u6E38\u620F\u5305\u3002", tools: ["game_record", "game_activity_save", "game_activity_remove", "game_add"] },
|
|
@@ -16554,13 +16633,18 @@ var DEFAULT_COMPACTION_THRESHOLD = 80;
|
|
|
16554
16633
|
var MIN_COMPACTION_THRESHOLD = 5;
|
|
16555
16634
|
var MAX_COMPACTION_THRESHOLD = 100;
|
|
16556
16635
|
var LOW_CONTEXT_WINDOW_MS = 12 * 60 * 6e4;
|
|
16636
|
+
var MIN_ARCHIVE_DAYS = 1;
|
|
16637
|
+
var MAX_ARCHIVE_DAYS = 365;
|
|
16638
|
+
var ARCHIVE_MARK = "\uFF08\u5DF2\u5F52\u6863\uFF09";
|
|
16557
16639
|
var CompactionSettings = external_exports.object({
|
|
16558
16640
|
/** Compact by itself when the conversation is long; off: a too-long conversation fails until compacted by hand. */
|
|
16559
16641
|
auto: external_exports.boolean(),
|
|
16560
16642
|
/** How full the context window gets before compacting, in percent. */
|
|
16561
16643
|
threshold: external_exports.number().int().min(MIN_COMPACTION_THRESHOLD).max(MAX_COMPACTION_THRESHOLD),
|
|
16562
16644
|
/** Low-context mode: keep only the last 12 hours and the summary in the context. */
|
|
16563
|
-
lowContext: external_exports.boolean()
|
|
16645
|
+
lowContext: external_exports.boolean(),
|
|
16646
|
+
/** With low-context mode: summaries of conversation older than this many days leave the context too; null: they stay. */
|
|
16647
|
+
archiveDays: external_exports.number().int().min(MIN_ARCHIVE_DAYS).max(MAX_ARCHIVE_DAYS).nullable().default(null)
|
|
16564
16648
|
});
|
|
16565
16649
|
var State = external_exports.object({ settings: CompactionSettings, applied: CompactionSettings });
|
|
16566
16650
|
var CompactionRequests = {
|
|
@@ -16579,7 +16663,14 @@ var CompactionRequests = {
|
|
|
16579
16663
|
// packages/protocol/lib/memory.js
|
|
16580
16664
|
var MEMORY_CAPABILITY = "memory";
|
|
16581
16665
|
var SHARED_MEMORY = "shared";
|
|
16582
|
-
var MemoryKind = external_exports.enum(["profile", "journal"]);
|
|
16666
|
+
var MemoryKind = external_exports.enum(["profile", "journal", "core"]);
|
|
16667
|
+
var MAX_CORE_CHARS = 2e3;
|
|
16668
|
+
var MemorySource = external_exports.object({
|
|
16669
|
+
/** The lead agent whose conversation it is (only that agent reads it back). */
|
|
16670
|
+
agent: external_exports.string(),
|
|
16671
|
+
sessionId: external_exports.string(),
|
|
16672
|
+
seq: external_exports.number().int().min(0)
|
|
16673
|
+
});
|
|
16583
16674
|
var MAX_MEMORY_TEXT = 600;
|
|
16584
16675
|
var MemoryEntry = external_exports.object({
|
|
16585
16676
|
id: external_exports.string(),
|
|
@@ -16591,7 +16682,9 @@ var MemoryEntry = external_exports.object({
|
|
|
16591
16682
|
createdAt: external_exports.string(),
|
|
16592
16683
|
updatedAt: external_exports.string(),
|
|
16593
16684
|
/** Who wrote it: an agent id, `user` (设置 → 记忆), or `auto` (read back from a conversation). */
|
|
16594
|
-
by: external_exports.string()
|
|
16685
|
+
by: external_exports.string(),
|
|
16686
|
+
/** Where it was learned; absent for what the user wrote on 设置 → 记忆, and for entries from before this was kept. */
|
|
16687
|
+
source: MemorySource.optional()
|
|
16595
16688
|
});
|
|
16596
16689
|
var MemoryAutoSettings = external_exports.object({
|
|
16597
16690
|
auto: external_exports.boolean(),
|
|
@@ -17844,10 +17937,10 @@ var SAVE_SKILL_PROMPT = [
|
|
|
17844
17937
|
function optimizeScriptPrompt(target, why, id) {
|
|
17845
17938
|
return [
|
|
17846
17939
|
`\u4F18\u5316\u811A\u672C${target === "" ? "\uFF1A\u6700\u8FD1\u8FD0\u884C\u8FC7\u7684\u811A\u672C\uFF08script_runs \u770B\u6700\u8FD1\u4E00\u5468\u8DD1\u8FC7\u54EA\u4E9B\uFF0C\u4E00\u4E2A\u4E00\u4E2A\u6765\uFF09" : `\u300C${target}\u300D${id === void 0 ? "" : `\uFF08\u811A\u672C id ${id}\uFF09`}`}${why === void 0 ? "" : `\uFF08${why}\uFF09`}\u3002\u628A\u8FD9\u6BB5\u65F6\u95F4\u8FD0\u884C\u6512\u4E0B\u7684\u4FE1\u606F\u7528\u8D77\u6765\uFF0C\u4E00\u6B21\u505A\u5B8C\u4E0B\u9762\u51E0\u4EF6\u4E8B\uFF1A`,
|
|
17847
|
-
"1. \u91CD\u65B0\u603B\u7ED3\u811A\u672C\u5305\uFF1Ascript_tasks\u3001script_help \u770B\u5B83\u73B0\u5728\u6709\u54EA\u4E9B\u4EFB\u52A1\u548C\u53C2\u6570\uFF0Cscript_runs\u3001script_run_log \u770B\u6700\u8FD1\u7684\u8FD0\u884C\uFF08\u6210\u529F\u7684\u770B\u6B63\u5E38\u6D41\u7A0B\u548C\u7528\u65F6\uFF0C\u5931\u8D25\u7684\u770B\u539F\u56E0\uFF09\uFF1B\u66F4\u65B0\u8FC7\u7248\u672C\u5C31\u5148\u7528 script_changelog \u8BFB\u66F4\u65B0\u65E5\u5FD7\u3002\u5BF9\u7167\u5B83\u7684\u811A\u672C\u5305\uFF0C\u4EFB\u52A1\u3001\u53C2\u6570\u3001\u914D\u7F6E\u6587\u4EF6\u3001\u5B8C\u6210\u548C\u51FA\u9519\u7684\u65E5\u5FD7\u6587\u5B57\u3001\u9884\u8BA1\u7528\u65F6\u6709\u4E0D\u5BF9\u6216\u7F3A\u7684\uFF0C\u7528\u539F\u6765\u7684\u811A\u672C\u5305 id \
|
|
17940
|
+
"1. \u91CD\u65B0\u603B\u7ED3\u811A\u672C\u5305\uFF1Ascript_tasks\u3001script_help \u770B\u5B83\u73B0\u5728\u6709\u54EA\u4E9B\u4EFB\u52A1\u548C\u53C2\u6570\uFF0Cscript_runs\u3001script_run_log \u770B\u6700\u8FD1\u7684\u8FD0\u884C\uFF08\u6210\u529F\u7684\u770B\u6B63\u5E38\u6D41\u7A0B\u548C\u7528\u65F6\uFF0C\u5931\u8D25\u7684\u770B\u539F\u56E0\uFF09\uFF1B\u66F4\u65B0\u8FC7\u7248\u672C\u5C31\u5148\u7528 script_changelog \u8BFB\u66F4\u65B0\u65E5\u5FD7\u3002\u5BF9\u7167\u5B83\u7684\u811A\u672C\u5305\uFF0C\u4EFB\u52A1\u3001\u53C2\u6570\u3001\u914D\u7F6E\u6587\u4EF6\u3001\u5B8C\u6210\u548C\u51FA\u9519\u7684\u65E5\u5FD7\u6587\u5B57\u3001\u9884\u8BA1\u7528\u65F6\u6709\u4E0D\u5BF9\u6216\u7F3A\u7684\uFF0C\u6216\u8005\u4F7F\u7528\u8BF4\u660E\uFF08guide\uFF1A\u529F\u80FD\u600E\u4E48\u5F00\u542F\u3001\u914D\u7F6E\u600E\u4E48\u8BBE\u3001\u8FD0\u884C\u524D\u68C0\u67E5\u3001\u5E38\u89C1\u95EE\u9898\uFF09\u7F3A\u4E86\u3001\u8FC7\u65F6\u4E86\u3001\u80FD\u7528\u8FD0\u884C\u91CC\u9047\u5230\u7684\u62A5\u9519\u8865\u4E0A\u7684\uFF0C\u7528\u539F\u6765\u7684\u811A\u672C\u5305 id \u8C03\u7528 pack_propose \u4FDD\u5B58\uFF08\u76F4\u63A5\u751F\u6548\uFF1Bsummary \u5199\u660E\u4F9D\u636E\uFF09\uFF1B\u90FD\u5BF9\u5C31\u4E0D\u6539\uFF1B",
|
|
17848
17941
|
"2. \u6539\u5584\u76D1\u63A7\u65F6\u95F4\uFF1Amonitor_stall_check \u770B\u5B83\u6B63\u5E38\u8FD0\u884C\u65F6\u65E5\u5FD7\u7684\u8282\u594F\uFF0C\u6309\u5EFA\u8BAE\u503C\u548C\u4F60\u770B\u65E5\u5FD7\u7684\u5224\u65AD\u7528 monitor_stall_set \u8BBE\u5B83\u591A\u4E45\u6CA1\u65B0\u65E5\u5FD7\u7B97\u5361\u4F4F\uFF0Cnote \u5199\u660E\u4F9D\u636E\uFF08\u4F8B\u5982\u300C\u6218\u6597\u4E2D\u6700\u957F 70 \u79D2\u4E0D\u8F93\u51FA\u300D\uFF09\uFF1B",
|
|
17849
17942
|
"3. \u628A\u505A\u8FC7\u7684\u6B65\u9AA4\u603B\u7ED3\u6210\u6280\u80FD\uFF0C\u5206\u5230\u5BF9\u5E94\u7684\u6E38\u620F\u548C\u811A\u672C\uFF1A\u8FD0\u884C\u548C\u5904\u7406\u8FD9\u4E2A\u811A\u672C\u65F6\u53CD\u590D\u7528\u5230\u3001\u5DF2\u7ECF\u8D70\u901A\u7684\u505A\u6CD5\uFF08\u5E38\u89C1\u62A5\u9519\u600E\u4E48\u5904\u7406\u3001\u600E\u4E48\u786E\u8BA4\u8DD1\u5B8C\u3001\u914D\u7F6E\u600E\u4E48\u6539\uFF09\u7528 skill_save \u5B58\u6210\u6280\u80FD\uFF0Cscripts \u586B\u8FD9\u4E2A\u811A\u672C\u7684 id\uFF0C\u53EA\u7ED9\u5B83\u7528\uFF1B\u5176\u4E2D\u548C\u6E38\u620F\u672C\u8EAB\u6709\u5173\u3001\u522B\u7684\u811A\u672C\u4E5F\u7528\u5F97\u4E0A\u7684\uFF08\u6E38\u620F\u91CC\u7684\u64CD\u4F5C\u3001\u754C\u9762\u3001\u6D3B\u52A8\u3001\u673A\u5236\uFF09\u5355\u72EC\u5B58\uFF0Cgames \u586B\u5B83\u73A9\u7684\u6E38\u620F id\uFF08game_list \u67E5\uFF09\uFF0C\u4E0D\u586B scripts\uFF1B\u5DF2\u6709\u7684\u6280\u80FD\u5C31\u5408\u5E76\u66F4\u65B0\uFF08replace\uFF09\uFF0C\u4E0D\u8981\u91CD\u590D\u5B58\uFF0C\u6CA1\u6709\u503C\u5F97\u5B58\u7684\u5C31\u4E0D\u5B58\uFF1B",
|
|
17850
|
-
"4. \u4E0D\u8981\u8FD0\u884C\u811A\u672C\u3001\u4E0D\u8981\u6539\u5B83\u7684\u914D\u7F6E\uFF1B\u6700\u540E\u7528\u51E0\u53E5\u8BDD\u544A\u8BC9\u6211\uFF1A\u811A\u672C\u5305\u6539\u4E86\u4EC0\u4E48\uFF08\
|
|
17943
|
+
"4. \u4E0D\u8981\u8FD0\u884C\u811A\u672C\u3001\u4E0D\u8981\u6539\u5B83\u7684\u914D\u7F6E\uFF1B\u6700\u540E\u7528\u51E0\u53E5\u8BDD\u544A\u8BC9\u6211\uFF1A\u811A\u672C\u5305\u6539\u4E86\u4EC0\u4E48\uFF08\u5DF2\u7ECF\u76F4\u63A5\u751F\u6548\uFF09\u3001\u5361\u4F4F\u65F6\u95F4\u8BBE\u6210\u591A\u5C11\u3001\u5B58\u4E86\u6216\u66F4\u65B0\u4E86\u54EA\u4E9B\u6280\u80FD\u3002"
|
|
17851
17944
|
].join("\n");
|
|
17852
17945
|
}
|
|
17853
17946
|
var COMMANDS = [
|
|
@@ -17873,12 +17966,12 @@ var COMMANDS = [
|
|
|
17873
17966
|
{
|
|
17874
17967
|
name: "\u7F16\u6392",
|
|
17875
17968
|
aliases: ["plan", "pipeline"],
|
|
17876
|
-
title: "\u628A\u811A\u672C\u7F16\u6210\u6D41\u6C34\u7EBF
|
|
17969
|
+
title: "\u628A\u811A\u672C\u7F16\u6210\u6D41\u6C34\u7EBF",
|
|
17877
17970
|
arg: "\u60F3\u505A\u4EC0\u4E48\uFF08\u53EF\u9009\uFF0C\u4F8B\u5982\u300C\u6BCF\u5929\u65E9\u4E0A\u8DD1\u5B8C\u4E09\u4E2A\u6E38\u620F\u7684\u65E5\u5E38\u300D\uFF09",
|
|
17878
17971
|
expand: (arg) => [
|
|
17879
17972
|
`\u5E2E\u6211\u628A\u811A\u672C\u7F16\u6392\u6210\u6D41\u6C34\u7EBF\uFF1A${arg === "" ? "\u628A\u6211\u88C5\u597D\u7684\u5404\u4E2A\u811A\u672C\u7684\u65E5\u5E38\u4EFB\u52A1\u6392\u6210\u6BCF\u5929\u80FD\u81EA\u52A8\u8DD1\u7684\u6D41\u7A0B" : arg}\u3002\u6309\u6280\u80FD pipeline-planning\uFF1A`,
|
|
17880
17973
|
"1. \u5148 system_info \u770B\u7535\u8111\u914D\u7F6E\uFF08\u80FD\u4E0D\u80FD\u540C\u65F6\u8DD1\u51E0\u4E2A\u6E38\u620F\uFF09\uFF0Cpipeline_list \u770B\u5DF2\u6709\u7684\u6D41\u6C34\u7EBF\uFF0Cscript_tasks \u770B\u5404\u811A\u672C\u6709\u54EA\u4E9B\u4EFB\u52A1\uFF1B",
|
|
17881
|
-
"2. \u7528 pipeline_draft \u8D77\u8349\uFF08\u8349\u7A3F\uFF0C\u6211\u5728\u300C\u7F16\u6392\u300D\u9875\u4FDD\u5B58\u540E\u624D\u4F1A\u6309\u5B9A\u65F6\u8FD0\u884C\uFF09\
|
|
17974
|
+
"2. \u6392\u597D\u540E\u4FDD\u5B58\uFF1A\u4F60\u662F\u300C\u7F16\u6392\u300D\u5C31\u7528 pipeline_save \u76F4\u63A5\u4FDD\u5B58\uFF1B\u4E0D\u662F\u5C31\u7528 pipeline_draft \u8D77\u8349\uFF08\u8349\u7A3F\uFF0C\u6211\u5728\u300C\u7F16\u6392\u300D\u9875\u4FDD\u5B58\u540E\u624D\u4F1A\u6309\u5B9A\u65F6\u8FD0\u884C\uFF09\uFF0C\u6216\u8005\u4EA4\u7ED9\u300C\u7F16\u6392\u300D\u3002\u6A21\u62DF\u5668\u548C\u524D\u53F0\u811A\u672C\u80FD\u5E76\u884C\u7684\u5E76\u884C\uFF0C\u5931\u8D25\u4E0D\u8981\u6321\u4F4F\u522B\u7684\uFF1B",
|
|
17882
17975
|
"3. \u8BF4\u6E05\u695A\u4E3A\u4EC0\u4E48\u8FD9\u6837\u6392\u3001\u54EA\u4E9B\u6B65\u9AA4\u5E76\u884C\u3001\u4F30\u8BA1\u591A\u4E45\u3001\u5EFA\u8BAE\u5B9A\u5728\u51E0\u70B9\u8DD1\u3002"
|
|
17883
17976
|
].join("\n")
|
|
17884
17977
|
},
|
|
@@ -18009,6 +18102,7 @@ export {
|
|
|
18009
18102
|
SetupAgent,
|
|
18010
18103
|
InstallSettings,
|
|
18011
18104
|
PACKS_CAPABILITY,
|
|
18105
|
+
BUILTIN_PACK_VERSION,
|
|
18012
18106
|
GUARD_CAPABILITY,
|
|
18013
18107
|
MONITOR_CAPABILITY,
|
|
18014
18108
|
Incident,
|
|
@@ -18071,10 +18165,14 @@ export {
|
|
|
18071
18165
|
COMPACTION_CAPABILITY,
|
|
18072
18166
|
DEFAULT_COMPACTION_THRESHOLD,
|
|
18073
18167
|
LOW_CONTEXT_WINDOW_MS,
|
|
18168
|
+
MIN_ARCHIVE_DAYS,
|
|
18169
|
+
MAX_ARCHIVE_DAYS,
|
|
18170
|
+
ARCHIVE_MARK,
|
|
18074
18171
|
CompactionSettings,
|
|
18075
18172
|
MEMORY_CAPABILITY,
|
|
18076
18173
|
SHARED_MEMORY,
|
|
18077
18174
|
MemoryKind,
|
|
18175
|
+
MAX_CORE_CHARS,
|
|
18078
18176
|
MAX_MEMORY_TEXT,
|
|
18079
18177
|
MemoryEntry,
|
|
18080
18178
|
RUNS_CAPABILITY,
|