@lmzhen/dsh-evolution-commands 0.57.0 → 0.58.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/lib/index.js +5 -3
- package/lib/types/doctor-view.d.ts +1 -0
- package/lib/types/host-commands/approval-commands.d.ts +1 -1
- package/lib/types/host-commands/curator-command.d.ts +1 -1
- package/lib/types/host-commands/doctor-command.d.ts +1 -1
- package/lib/types/host-commands/handlers.d.ts +1 -1
- package/lib/types/host-commands/params-command.d.ts +1 -1
- package/lib/types/host-commands/restore-commands.d.ts +1 -1
- package/lib/types/host-commands/skill-history-commands.d.ts +1 -1
- package/lib/types/index.d.ts +1 -1
- package/package.json +12 -10
package/lib/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
|
-
import { commandsPort, configEditorPort,
|
|
2
|
+
import { commandsPort, configEditorPort, pluginInventoryPort, pluginManagerPort, profileContextPort, settingsPort, toolsPort } from "@lmzhen/dsh-evolution-adapter/ports";
|
|
3
3
|
import { DEFAULT_SKILL_LIMITS, DIAGNOSTICS_FACT_KEYS, DIAGNOSTICS_RUNTIME_KEYS, DIAGNOSTICS_VIEW_SCHEMA_VERSION, EVOLUTION_PRESET_IDS, GOVERNANCE_PROMPT_TEMPLATE, HOST_LOCALES, MAINTAINER_PRESET_ID, MAX_TIMER_DELAY_MS, PARAM_EXPOSURE, PARAM_GROUP_LABELS, PLATFORM_LINE, REVIEWER_PRESET_ID, absentHostServices, appendEvolutionEvent, applyNamespaceMigration, asRecord, atomicWriteFiles, authorityFrom, buildLearnPrompt, clampedNumber, classifyNamespaceMigration, createSubagentChannel, errorText, errorTextIn, eventsFile, evolutionHome, evolutionRoot, hostSurface, isDeprecatedParamId, isPresent, isRecord, isUnknown, liveBool, markReviewChannel, mutationLockFrom, newRunRegistry, paramSettingsId, planNamespaceMigration, policyStageLimits, probeMtime, probeText, reportsSweepLockTarget, resolveParamId, reviewPrompt, scopedPackageName, scopedProbeReport, sweepReports, transactIo, withReviewContext } from "@lmzhen/dsh-evolution-core";
|
|
4
4
|
import { HOST_ROUTES, json, methodNotAllowed, registerHostRoutes } from "@lmzhen/dsh-evolution-core/http-routes";
|
|
5
5
|
import { existsSync, readFileSync, readdirSync } from "node:fs";
|
|
@@ -7,6 +7,7 @@ import { dirname, join } from "node:path";
|
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
8
8
|
import z from "@deepseek-ai/schemastery";
|
|
9
9
|
import { effectiveSessionPolicy } from "@lmzhen/dsh-evolution-approval";
|
|
10
|
+
import { createUserMessage } from "@lmzhen/dsh-evolution-adapter/values";
|
|
10
11
|
import { buildEnrichment, buildMaintainFacts, enrichmentSnapshotOptions, runMaintain, snapshotFromLibrary } from "@lmzhen/dsh-evolution-maintenance";
|
|
11
12
|
import { composePresetEntry, presetRowBlock, presetRowBody, presetRowId, resolveBasePresetPatch } from "@lmzhen/dsh-evolution-core/composition";
|
|
12
13
|
import { processScopeViolations } from "@lmzhen/dsh-evolution-state";
|
|
@@ -97,7 +98,7 @@ const FORM_WORDS = Object.freeze({
|
|
|
97
98
|
*/
|
|
98
99
|
function factsOf(inputs) {
|
|
99
100
|
const values = {
|
|
100
|
-
"platform-line": inputs.platformLine.version + "
|
|
101
|
+
"platform-line": inputs.platformLine.version + "(cohort " + (inputs.platformLine.cohort?.join(" / ") ?? inputs.platformLine.floor) + ";最低兼容 " + inputs.platformLine.floor + ")",
|
|
101
102
|
"family-version": inputs.familyVersion,
|
|
102
103
|
"install-form": FORM_WORDS[inputs.form.id] + "(" + (inputs.form.confidence === "declared" ? "安装内容已确认" : "按已安装内容推断") + ")",
|
|
103
104
|
"preset-ids": "审阅、维护各有一个只读模式;另有 " + String(EVOLUTION_PRESET_IDS.length) + " 个基础预设可选",
|
|
@@ -531,7 +532,8 @@ async function assembleDoctorInputs(ctx, extras = {}) {
|
|
|
531
532
|
now: extras.now ?? /* @__PURE__ */ new Date(),
|
|
532
533
|
platformLine: {
|
|
533
534
|
version: PLATFORM_LINE.version,
|
|
534
|
-
floor: PLATFORM_LINE.floor
|
|
535
|
+
floor: PLATFORM_LINE.floor,
|
|
536
|
+
cohort: PLATFORM_LINE.cohort
|
|
535
537
|
},
|
|
536
538
|
familyVersion: familyVersion(),
|
|
537
539
|
hostVersion: extras.hostVersion ?? platformVersion,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @module evolution-commands/src/host-commands/approval-commands
|
|
5
5
|
*/
|
|
6
6
|
import type { ApprovalLike } from '@lmzhen/dsh-evolution-approval';
|
|
7
|
-
import type { CommandResult } from '@lmzhen/dsh-evolution-
|
|
7
|
+
import type { CommandResult } from '@lmzhen/dsh-evolution-platform-contract';
|
|
8
8
|
import type { HostLocale } from '@lmzhen/dsh-evolution-core';
|
|
9
9
|
import type { ParsedCommand } from '../parse.ts';
|
|
10
10
|
/** What the approval handlers need from the command body. */
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @module evolution-commands/src/host-commands/curator-command
|
|
5
5
|
*/
|
|
6
6
|
import type { HostLocale } from '@lmzhen/dsh-evolution-core';
|
|
7
|
-
import type { CommandResult } from '@lmzhen/dsh-evolution-
|
|
7
|
+
import type { CommandResult } from '@lmzhen/dsh-evolution-platform-contract';
|
|
8
8
|
/** What the curator handler needs from the command body. */
|
|
9
9
|
export interface CuratorCommandContext {
|
|
10
10
|
readonly input: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** The read-only doctor surface: the CLI view and its --json form. */
|
|
2
2
|
import type { HostLocale } from '@lmzhen/dsh-evolution-core';
|
|
3
|
-
import type { CommandResult } from '@lmzhen/dsh-evolution-
|
|
3
|
+
import type { CommandResult } from '@lmzhen/dsh-evolution-platform-contract';
|
|
4
4
|
import { diagnose } from '../doctor.ts';
|
|
5
5
|
/** What the doctor handler needs. */
|
|
6
6
|
export interface DoctorCommandContext {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Extracted command handlers; the legacy chain answers whatever is not here. */
|
|
2
|
-
import type { CommandResult } from '@lmzhen/dsh-evolution-
|
|
2
|
+
import type { CommandResult } from '@lmzhen/dsh-evolution-platform-contract';
|
|
3
3
|
import type { SettingsProviderLike } from '@lmzhen/dsh-evolution-core';
|
|
4
4
|
import { type ApprovalCommandContext } from './approval-commands.ts';
|
|
5
5
|
/** What every extracted handler receives. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** The read-only `params` surface: provider rows filtered by group, text or JSON. */
|
|
2
2
|
import type { HostLocale, SettingsProviderLike } from '@lmzhen/dsh-evolution-core';
|
|
3
|
-
import type { CommandResult } from '@lmzhen/dsh-evolution-
|
|
3
|
+
import type { CommandResult } from '@lmzhen/dsh-evolution-platform-contract';
|
|
4
4
|
import type { ParsedCommand } from '../parse.ts';
|
|
5
5
|
/** What the params handler needs. */
|
|
6
6
|
export interface ParamsCommandContext {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** The two whole/single-tree restore commands, both behind the same replayability refusal. */
|
|
2
2
|
import type { HostLocale } from '@lmzhen/dsh-evolution-core';
|
|
3
|
-
import type { CommandResult } from '@lmzhen/dsh-evolution-
|
|
3
|
+
import type { CommandResult } from '@lmzhen/dsh-evolution-platform-contract';
|
|
4
4
|
/** What the restore handlers need. */
|
|
5
5
|
export interface RestoreCommandContext {
|
|
6
6
|
readonly input: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** The read-only skill history and its undo (the undo write stays behind the refusal seam). */
|
|
2
2
|
import type { HostLocale } from '@lmzhen/dsh-evolution-core';
|
|
3
|
-
import type { CommandResult } from '@lmzhen/dsh-evolution-
|
|
3
|
+
import type { CommandResult } from '@lmzhen/dsh-evolution-platform-contract';
|
|
4
4
|
/** What the two handlers need. */
|
|
5
5
|
export interface SkillHistoryCommandContext {
|
|
6
6
|
readonly input: string;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import type { Context, Volatile } from '@deepseek-ai/cordis';
|
|
6
6
|
import z from '@deepseek-ai/schemastery';
|
|
7
|
-
import type { ContextFormed } from '@lmzhen/dsh-evolution-
|
|
7
|
+
import type { ContextFormed } from '@lmzhen/dsh-evolution-platform-contract';
|
|
8
8
|
declare module '@deepseek-ai/dsh-llm' {
|
|
9
9
|
interface MessageSourceMap {
|
|
10
10
|
'evolution-commands': {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmzhen/dsh-evolution-commands",
|
|
3
3
|
"description": "Human commands for the evolution family (/evolution pending|curator|maintain|doctor) (community build)",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.58.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -29,23 +29,25 @@
|
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@deepseek-ai/schemastery": "^3.18.5",
|
|
32
|
-
"@lmzhen/dsh-evolution-approval": "0.
|
|
33
|
-
"@lmzhen/dsh-evolution-core": "0.
|
|
34
|
-
"@lmzhen/dsh-evolution-maintenance": "0.
|
|
35
|
-
"@lmzhen/dsh-evolution-state": "0.
|
|
32
|
+
"@lmzhen/dsh-evolution-approval": "0.58.0",
|
|
33
|
+
"@lmzhen/dsh-evolution-core": "0.58.0",
|
|
34
|
+
"@lmzhen/dsh-evolution-maintenance": "0.58.0",
|
|
35
|
+
"@lmzhen/dsh-evolution-state": "0.58.0",
|
|
36
|
+
"@lmzhen/dsh-evolution-platform-contract": "0.58.0",
|
|
37
|
+
"@lmzhen/dsh-evolution-adapter": "0.58.0"
|
|
36
38
|
},
|
|
37
39
|
"optionalDependencies": {
|
|
38
|
-
"@lmzhen/dsh-evolution-agent-preset": "0.
|
|
40
|
+
"@lmzhen/dsh-evolution-agent-preset": "0.58.0"
|
|
39
41
|
},
|
|
40
42
|
"peerDependencies": {
|
|
41
43
|
"@deepseek-ai/cordis": "^4.0.5",
|
|
42
|
-
"@deepseek-ai/dsh-commands": "
|
|
43
|
-
"@deepseek-ai/dsh-llm": "
|
|
44
|
+
"@deepseek-ai/dsh-commands": "0.2.2-rc.5",
|
|
45
|
+
"@deepseek-ai/dsh-llm": "0.2.2-rc.5"
|
|
44
46
|
},
|
|
45
47
|
"devDependencies": {
|
|
46
|
-
"@deepseek-ai/dsh-commands": "
|
|
48
|
+
"@deepseek-ai/dsh-commands": "0.2.2-rc.5"
|
|
47
49
|
},
|
|
48
50
|
"engines": {
|
|
49
|
-
"dsh": "
|
|
51
|
+
"dsh": "0.2.2-rc.5"
|
|
50
52
|
}
|
|
51
53
|
}
|