@lmzhen/dsh-evolution-core 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/README.md +3 -1
- package/lib/authority-plugin.js +1 -1
- package/lib/composition/index.js +2 -2
- package/lib/{composition-B-gKqiBY.js → composition-B_F4TYOD.js} +1 -1
- package/lib/{ensure-BLmEW0Ju.js → ensure-BpVDuDnA.js} +1 -1
- package/lib/http-routes.js +1 -1
- package/lib/index.js +9 -7
- package/lib/{mutation-authority-DQfpXs1O.js → mutation-authority-Du-ON0NY.js} +1 -1
- package/lib/policy.js +1 -1
- package/lib/restrictor.js +1 -2
- package/lib/result.js +2 -33
- package/lib/runtime/plugin.js +1 -54
- package/lib/skills.js +1 -1
- package/lib/subagent/index.js +1 -1
- package/lib/types/authority.d.ts +1 -1
- package/lib/types/authority.js +1 -1
- package/lib/types/composition/ensure.js +1 -1
- package/lib/types/http-routes.js +1 -1
- package/lib/types/opt-in.js +2 -2
- package/lib/types/params.js +1 -1
- package/lib/types/platform-line.generated.d.ts +4 -2
- package/lib/types/platform-line.generated.js +6 -2
- package/lib/types/policy.js +1 -1
- package/lib/types/restrictor.js +2 -2
- package/lib/types/result.d.ts +3 -31
- package/lib/types/result.js +6 -24
- package/lib/types/runtime/coherence.js +1 -1
- package/lib/types/runtime/llm.d.ts +1 -1
- package/lib/types/runtime/llm.js +1 -1
- package/lib/types/runtime/platform.d.ts +8 -58
- package/lib/types/runtime/platform.js +7 -61
- package/lib/types/runtime/plugin.js +1 -4
- package/lib/types/runtime/projections.d.ts +1 -1
- package/lib/types/scope.js +1 -1
- package/lib/types/session-projection.d.ts +1 -1
- package/lib/types/signals.d.ts +1 -1
- package/lib/types/subagent/run.d.ts +1 -1
- package/lib/types/subagent/types.d.ts +4 -4
- package/package.json +7 -32
- package/lib/connection-DAJy7Xjm.js +0 -28
- package/lib/platform/index.js +0 -5
- package/lib/platform-UL-djjz9.js +0 -244
- package/lib/presets-C8vuCuNA.js +0 -27
- package/lib/tools-BrUswg8v.js +0 -22
- package/lib/types/platform/agents.d.ts +0 -32
- package/lib/types/platform/agents.js +0 -26
- package/lib/types/platform/commands.d.ts +0 -14
- package/lib/types/platform/commands.js +0 -9
- package/lib/types/platform/connection.d.ts +0 -26
- package/lib/types/platform/connection.js +0 -27
- package/lib/types/platform/index.d.ts +0 -55
- package/lib/types/platform/index.js +0 -29
- package/lib/types/platform/llm.d.ts +0 -47
- package/lib/types/platform/llm.js +0 -76
- package/lib/types/platform/platformView.d.ts +0 -21
- package/lib/types/platform/platformView.js +0 -29
- package/lib/types/platform/presets.d.ts +0 -31
- package/lib/types/platform/presets.js +0 -31
- package/lib/types/platform/profileContext.d.ts +0 -16
- package/lib/types/platform/profileContext.js +0 -14
- package/lib/types/platform/projections.d.ts +0 -35
- package/lib/types/platform/projections.js +0 -34
- package/lib/types/platform/settings.d.ts +0 -22
- package/lib/types/platform/settings.js +0 -14
- package/lib/types/platform/skills.d.ts +0 -16
- package/lib/types/platform/skills.js +0 -9
- package/lib/types/platform/storageDomain.d.ts +0 -13
- package/lib/types/platform/storageDomain.js +0 -9
- package/lib/types/platform/subagents.d.ts +0 -25
- package/lib/types/platform/subagents.js +0 -17
- package/lib/types/platform/systemPrompt.d.ts +0 -16
- package/lib/types/platform/systemPrompt.js +0 -13
- package/lib/types/platform/tools.d.ts +0 -27
- package/lib/types/platform/tools.js +0 -23
- package/lib/types/platform/userQuestions.d.ts +0 -33
- package/lib/types/platform/userQuestions.js +0 -9
- package/lib/types/platform/workingDirectory.d.ts +0 -14
- package/lib/types/platform/workingDirectory.js +0 -9
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Resolve the tools port from a context; undefined means the host has no tools service.
|
|
3
|
-
* platform-declaration anchor: tools is declared in core PLATFORM_SERVICE_PROBES.
|
|
4
|
-
*/
|
|
5
|
-
export function toolsPort(ctx) {
|
|
6
|
-
// The cast is confined to the boundary: the platform service class is the
|
|
7
|
-
// contract, while the port keeps feature code independent of its full face.
|
|
8
|
-
const tools = ctx.get('tools');
|
|
9
|
-
if (tools === undefined)
|
|
10
|
-
return undefined;
|
|
11
|
-
return {
|
|
12
|
-
register: (definition) => tools.register(definition),
|
|
13
|
-
guard: (guard) => tools.guard(guard),
|
|
14
|
-
restrict: (filter) => tools.restrict(filter),
|
|
15
|
-
get: (name, scope) => tools.get(name, scope),
|
|
16
|
-
...(typeof tools.execute === 'function' ? { execute: (input) => tools.execute(input) } : {}),
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
/** Register one family tool through the port; a missing service yields a no-op disposer. */
|
|
20
|
-
export function registerEvolutionTool(ctx, definition) {
|
|
21
|
-
return toolsPort(ctx)?.register(definition) ?? (() => { });
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=tools.js.map
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The human-question half of the family's host platform boundary.
|
|
3
|
-
*
|
|
4
|
-
* `ask` is the only face the skill-write confirmation gate needs; the platform
|
|
5
|
-
* owns live-root admission and delivery. The port returns the bare answer shape
|
|
6
|
-
* so feature code does not import the user-questions package.
|
|
7
|
-
*/
|
|
8
|
-
import type { Context } from '@deepseek-ai/cordis';
|
|
9
|
-
export interface UserQuestionOption {
|
|
10
|
-
readonly label: string;
|
|
11
|
-
}
|
|
12
|
-
export interface UserQuestion {
|
|
13
|
-
readonly id: string;
|
|
14
|
-
readonly header?: string;
|
|
15
|
-
readonly question: string;
|
|
16
|
-
readonly options?: readonly UserQuestionOption[];
|
|
17
|
-
}
|
|
18
|
-
export interface AskedQuestions {
|
|
19
|
-
readonly answers: readonly {
|
|
20
|
-
readonly id: string;
|
|
21
|
-
readonly selected: readonly string[];
|
|
22
|
-
}[];
|
|
23
|
-
}
|
|
24
|
-
export interface UserQuestionsPort {
|
|
25
|
-
ask(request: {
|
|
26
|
-
readonly questions: readonly UserQuestion[];
|
|
27
|
-
readonly agent?: unknown;
|
|
28
|
-
readonly signal?: AbortSignal;
|
|
29
|
-
}): Promise<AskedQuestions>;
|
|
30
|
-
}
|
|
31
|
-
/** Resolve the user-questions port; undefined means the host has no such service. */
|
|
32
|
-
export declare function userQuestionsPort(ctx: Context): UserQuestionsPort | undefined;
|
|
33
|
-
//# sourceMappingURL=userQuestions.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/** Resolve the user-questions port; undefined means the host has no such service. */
|
|
2
|
-
export function userQuestionsPort(ctx) {
|
|
3
|
-
// platform-declaration anchor: userQuestions is declared in core PLATFORM_SERVICE_PROBES.
|
|
4
|
-
const service = ctx.get('userQuestions');
|
|
5
|
-
if (service === undefined || typeof service.ask !== 'function')
|
|
6
|
-
return undefined;
|
|
7
|
-
return { ask: (request) => service.ask(request) };
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=userQuestions.js.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The working-directory half of the family's host platform boundary.
|
|
3
|
-
*
|
|
4
|
-
* The platform resolves the session's cwd; the family only asks, keeping the
|
|
5
|
-
* scope/cwd policy in one host seam.
|
|
6
|
-
*/
|
|
7
|
-
import type { Context } from '@deepseek-ai/cordis';
|
|
8
|
-
import type { Agent } from '@deepseek-ai/dsh-agent';
|
|
9
|
-
export interface WorkingDirectoryPort {
|
|
10
|
-
ensure(agent: Agent, signal?: AbortSignal): Promise<string>;
|
|
11
|
-
}
|
|
12
|
-
/** Resolve the working-directory port; undefined means the host has no such service. */
|
|
13
|
-
export declare function workingDirectoryPort(ctx: Context): WorkingDirectoryPort | undefined;
|
|
14
|
-
//# sourceMappingURL=workingDirectory.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/** Resolve the working-directory port; undefined means the host has no such service. */
|
|
2
|
-
export function workingDirectoryPort(ctx) {
|
|
3
|
-
// platform-declaration anchor: workingDirectory is declared in core PLATFORM_SERVICE_PROBES.
|
|
4
|
-
const service = ctx.get('workingDirectory');
|
|
5
|
-
if (service === undefined || typeof service.ensure !== 'function')
|
|
6
|
-
return undefined;
|
|
7
|
-
return { ensure: (agent, signal) => service.ensure(agent, signal) };
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=workingDirectory.js.map
|