@lmzhen/dsh-evolution-skill-discovery 0.31.1 → 0.32.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/main-entry.js +2517 -5
- package/lib/types/assignment-queue.d.ts +3 -1
- package/lib/types/assignment-sidecar.d.ts +4 -1
- package/lib/types/awareness.d.ts +4 -1
- package/lib/types/catalog-codec.d.ts +5 -0
- package/lib/types/index.d.ts +0 -12
- package/lib/types/main-entry.d.ts +4 -1
- package/lib/types/projection-journal.d.ts +2 -0
- package/lib/types/tool.d.ts +4 -1
- package/package.json +7 -17
- package/lib/domain-description-3MIOYgVH.js +0 -2105
- package/lib/index.js +0 -764
- package/lib/search-entry.js +0 -88
- package/lib/tool-CvUTwKvW.js +0 -446
- package/lib/types/adapter.d.ts +0 -48
- package/lib/types/domain-metrics.d.ts +0 -41
- package/lib/types/domain-view.d.ts +0 -15
- package/lib/types/features.d.ts +0 -11
- package/lib/types/maintenance.d.ts +0 -62
- package/lib/types/plugin.d.ts +0 -31
- package/lib/types/runtime.d.ts +0 -42
- package/lib/types/search-entry.d.ts +0 -19
- package/lib/types/search-judge.d.ts +0 -26
- package/lib/types/session-projection.d.ts +0 -19
- package/lib/types/session-store.d.ts +0 -22
- package/lib/types/stages.d.ts +0 -6
- package/lib/types/ui.d.ts +0 -69
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { EvolutionIoLike } from '@lmzhen/dsh-evolution-core';
|
|
2
|
+
import type { EvolutionStateStore } from '@lmzhen/dsh-evolution-contract';
|
|
2
3
|
import type { AssignmentQueue, AssignmentQueueEntry, AssignmentSubmission } from './assignment.ts';
|
|
3
4
|
/** Durable assignment queue; process-local cache over one JSON file. */
|
|
4
5
|
export declare class JsonAssignmentQueue implements AssignmentQueue {
|
|
@@ -6,7 +7,8 @@ export declare class JsonAssignmentQueue implements AssignmentQueue {
|
|
|
6
7
|
private loadPromise;
|
|
7
8
|
private readonly io;
|
|
8
9
|
private readonly path;
|
|
9
|
-
|
|
10
|
+
private readonly store;
|
|
11
|
+
constructor(io: EvolutionIoLike, path: string, store?: EvolutionStateStore);
|
|
10
12
|
load(): Promise<void>;
|
|
11
13
|
private persist;
|
|
12
14
|
enqueue(input: {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import type { Context } from '@deepseek-ai/cordis';
|
|
1
|
+
import type { Context as CordisContext } from '@deepseek-ai/cordis';
|
|
2
|
+
import type { Context as HostContext } from '@deepseek-ai/cordis/src/context.ts';
|
|
3
|
+
type Context = CordisContext & HostContext;
|
|
2
4
|
import type { DomainAssignmentService } from './assignment.ts';
|
|
3
5
|
declare module '@deepseek-ai/cordis' {
|
|
4
6
|
interface Events {
|
|
@@ -27,4 +29,5 @@ export interface AssignmentSidecarOptions {
|
|
|
27
29
|
* @returns disposer for both listeners.
|
|
28
30
|
*/
|
|
29
31
|
export declare function installAssignmentSidecar(ctx: Context, service: DomainAssignmentService, options?: AssignmentSidecarOptions): () => void;
|
|
32
|
+
export {};
|
|
30
33
|
//# sourceMappingURL=assignment-sidecar.d.ts.map
|
package/lib/types/awareness.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import type { Context } from '@deepseek-ai/cordis';
|
|
1
|
+
import type { Context as CordisContext } from '@deepseek-ai/cordis';
|
|
2
|
+
import type { Context as HostContext } from '@deepseek-ai/cordis/src/context.ts';
|
|
3
|
+
type Context = CordisContext & HostContext;
|
|
2
4
|
/** Static 1–2 sentence awareness; no domain list/tree. */
|
|
3
5
|
export declare const DISCOVERY_AWARENESS = "When skill coverage for a task is uncertain, the domain cards and skill_search can reduce it; search is optional, not a required step.";
|
|
4
6
|
/**
|
|
@@ -6,4 +8,5 @@ export declare const DISCOVERY_AWARENESS = "When skill coverage for a task is un
|
|
|
6
8
|
* platform-declaration anchor: the optional systemPrompt service declared in core PLATFORM_SERVICE_PROBES.
|
|
7
9
|
*/
|
|
8
10
|
export declare function installDiscoveryAwareness(ctx: Context): () => void;
|
|
11
|
+
export {};
|
|
9
12
|
//# sourceMappingURL=awareness.d.ts.map
|
|
@@ -6,6 +6,11 @@ interface CatalogSource {
|
|
|
6
6
|
readonly update?: true;
|
|
7
7
|
readonly entries: readonly CatalogEntry[];
|
|
8
8
|
}
|
|
9
|
+
declare module '@deepseek-ai/dsh-llm' {
|
|
10
|
+
interface MessageSourceMap {
|
|
11
|
+
'skill-catalog': CatalogSource;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
9
14
|
/** Captured platform catalog; base text and source are kept verbatim. */
|
|
10
15
|
export interface CatalogCapture {
|
|
11
16
|
readonly text: string;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -13,30 +13,18 @@ export * from './generation-input.ts';
|
|
|
13
13
|
export * from './generation-composition.ts';
|
|
14
14
|
export * from './domain-map.ts';
|
|
15
15
|
export * from './projection.ts';
|
|
16
|
-
export * from './adapter.ts';
|
|
17
|
-
export * from './features.ts';
|
|
18
|
-
export * from './stages.ts';
|
|
19
16
|
export * from './search.ts';
|
|
20
17
|
export * from './domain-map-store.ts';
|
|
21
|
-
export * from './domain-view.ts';
|
|
22
18
|
export * from './domain-policy.ts';
|
|
23
19
|
export * from './domain-generation.ts';
|
|
24
20
|
export * from './domain-description.ts';
|
|
25
21
|
export * from './domain-quality.ts';
|
|
26
|
-
export * from './domain-metrics.ts';
|
|
27
22
|
export * from './domain-projection.ts';
|
|
28
|
-
export * from './session-projection.ts';
|
|
29
23
|
export * from './tool.ts';
|
|
30
24
|
export * from './assignment.ts';
|
|
31
|
-
export * from './maintenance.ts';
|
|
32
|
-
export * from './ui.ts';
|
|
33
25
|
export * from './security.ts';
|
|
34
|
-
export * from './session-store.ts';
|
|
35
|
-
export * from './runtime.ts';
|
|
36
26
|
export * from './assignment-sidecar.ts';
|
|
37
|
-
export * from './search-judge.ts';
|
|
38
27
|
export * from './awareness.ts';
|
|
39
|
-
export * from './plugin.ts';
|
|
40
28
|
export * from './worker.ts';
|
|
41
29
|
export * from './domain-bootstrap.ts';
|
|
42
30
|
export * from './domain-generation-service.ts';
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import type { Context } from '@deepseek-ai/cordis';
|
|
1
|
+
import type { Context as CordisContext } from '@deepseek-ai/cordis';
|
|
2
|
+
import type { Context as HostContext } from '@deepseek-ai/cordis/src/context.ts';
|
|
3
|
+
type Context = CordisContext & HostContext;
|
|
2
4
|
import type { DomainPolicyLayer } from './domain-policy.ts';
|
|
3
5
|
/** Main production config. */
|
|
4
6
|
export interface Config {
|
|
@@ -33,4 +35,5 @@ export declare const name = "evolution-skill-discovery";
|
|
|
33
35
|
export declare const inject: string[];
|
|
34
36
|
/** Apply the full production discovery composition. */
|
|
35
37
|
export declare function apply(ctx: Context, config: Config): void;
|
|
38
|
+
export {};
|
|
36
39
|
//# sourceMappingURL=main-entry.d.ts.map
|
|
@@ -16,6 +16,8 @@ export declare class ProjectionJournal {
|
|
|
16
16
|
private readonly io;
|
|
17
17
|
private readonly path;
|
|
18
18
|
private readonly maxRecords;
|
|
19
|
+
private cache;
|
|
20
|
+
private readonly serial;
|
|
19
21
|
constructor(io: EvolutionIoLike, path: string, options?: {
|
|
20
22
|
readonly maxRecords?: number | undefined;
|
|
21
23
|
});
|
package/lib/types/tool.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import type { Context } from '@deepseek-ai/cordis';
|
|
1
|
+
import type { Context as CordisContext } from '@deepseek-ai/cordis';
|
|
2
|
+
import type { Context as HostContext } from '@deepseek-ai/cordis/src/context.ts';
|
|
3
|
+
type Context = CordisContext & HostContext;
|
|
2
4
|
import type { Agent } from '@deepseek-ai/dsh-agent';
|
|
3
5
|
import type { SkillSearch, SkillSearchQuery, SkillSearchResponse } from './search.ts';
|
|
4
6
|
/** Search dependency supplied by the composition; absent search degrades. */
|
|
@@ -24,4 +26,5 @@ export declare function searchWithDegraded(provider: SkillSearchProvider | undef
|
|
|
24
26
|
export declare function registerSkillSearchTool(ctx: Context, provider: SkillSearchProvider | undefined): () => void;
|
|
25
27
|
/** @returns true only for a search implementation; used by composition wiring. */
|
|
26
28
|
export declare function isSkillSearch(value: unknown): value is SkillSearch;
|
|
29
|
+
export {};
|
|
27
30
|
//# sourceMappingURL=tool.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmzhen/dsh-evolution-skill-discovery",
|
|
3
3
|
"description": "Read model and view identity for evolution skill discovery (community build)",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.32.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -18,14 +18,6 @@
|
|
|
18
18
|
"types": "./lib/types/main-entry.d.ts",
|
|
19
19
|
"default": "./lib/main-entry.js"
|
|
20
20
|
},
|
|
21
|
-
"./search": {
|
|
22
|
-
"types": "./lib/types/search-entry.d.ts",
|
|
23
|
-
"default": "./lib/search-entry.js"
|
|
24
|
-
},
|
|
25
|
-
"./domain": {
|
|
26
|
-
"types": "./lib/types/index.d.ts",
|
|
27
|
-
"default": "./lib/index.js"
|
|
28
|
-
},
|
|
29
21
|
"./package.json": "./package.json"
|
|
30
22
|
},
|
|
31
23
|
"files": [
|
|
@@ -38,25 +30,23 @@
|
|
|
38
30
|
"@deepseek-ai/cordis": "^4.0.5",
|
|
39
31
|
"@deepseek-ai/dsh-agent": "^0.2.1-rc.2",
|
|
40
32
|
"@deepseek-ai/dsh-llm": "^0.2.1-rc.2",
|
|
41
|
-
"@deepseek-ai/dsh-session": "^0.2.1-rc.2",
|
|
42
33
|
"@deepseek-ai/dsh-tools": "^0.2.1-rc.2",
|
|
43
34
|
"@deepseek-ai/dsh-system-prompt": "^0.2.1-rc.2",
|
|
44
|
-
"@lmzhen/dsh-evolution-
|
|
45
|
-
"@lmzhen/dsh-evolution-
|
|
35
|
+
"@lmzhen/dsh-evolution-contract": "^0.32.0",
|
|
36
|
+
"@lmzhen/dsh-evolution-core": "^0.32.0",
|
|
37
|
+
"@lmzhen/dsh-evolution-io": "^0.32.0"
|
|
46
38
|
},
|
|
47
39
|
"devDependencies": {
|
|
48
40
|
"@deepseek-ai/dsh-skill": "^0.2.1-rc.2",
|
|
49
41
|
"@deepseek-ai/cordis": "^4.0.5",
|
|
50
42
|
"@deepseek-ai/dsh-agent": "^0.2.1-rc.2",
|
|
51
43
|
"@deepseek-ai/dsh-llm": "^0.2.1-rc.2",
|
|
52
|
-
"@deepseek-ai/dsh-session": "^0.2.1-rc.2",
|
|
53
44
|
"@deepseek-ai/dsh-agent-loop-testkit": "^0.2.1-rc.2",
|
|
54
45
|
"@deepseek-ai/dsh-system-prompt": "^0.2.1-rc.2",
|
|
55
46
|
"@deepseek-ai/dsh-tools": "^0.2.1-rc.2",
|
|
56
|
-
"@
|
|
57
|
-
"@
|
|
58
|
-
"@lmzhen/dsh-evolution-
|
|
59
|
-
"@lmzhen/dsh-evolution-io": "^0.31.1"
|
|
47
|
+
"@lmzhen/dsh-evolution-contract": "^0.32.0",
|
|
48
|
+
"@lmzhen/dsh-evolution-core": "^0.32.0",
|
|
49
|
+
"@lmzhen/dsh-evolution-io": "^0.32.0"
|
|
60
50
|
},
|
|
61
51
|
"dependencies": {
|
|
62
52
|
"@deepseek-ai/dsh-llm": "^0.2.1-rc.2",
|