@lmzhen/dsh-evolution-skill-discovery 0.31.0 → 0.31.1
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.
|
@@ -1922,23 +1922,24 @@ function buildNext(current, entry, proposal, threshold) {
|
|
|
1922
1922
|
/** Durable assignment queue; process-local cache over one JSON file. */
|
|
1923
1923
|
var JsonAssignmentQueue = class {
|
|
1924
1924
|
entries = /* @__PURE__ */ new Map();
|
|
1925
|
-
|
|
1925
|
+
loadPromise;
|
|
1926
1926
|
io;
|
|
1927
1927
|
path;
|
|
1928
1928
|
constructor(io, path) {
|
|
1929
1929
|
this.io = io;
|
|
1930
1930
|
this.path = path;
|
|
1931
1931
|
}
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
}
|
|
1932
|
+
load() {
|
|
1933
|
+
this.loadPromise ??= (async () => {
|
|
1934
|
+
const content = await this.io.readText(this.path);
|
|
1935
|
+
if (content === null) return;
|
|
1936
|
+
try {
|
|
1937
|
+
const parsed = JSON.parse(content);
|
|
1938
|
+
if (parsed.schemaVersion !== 1 || !Array.isArray(parsed.entries)) return;
|
|
1939
|
+
for (const entry of parsed.entries) this.entries.set(entry.key, entry);
|
|
1940
|
+
} catch {}
|
|
1941
|
+
})();
|
|
1942
|
+
return this.loadPromise;
|
|
1942
1943
|
}
|
|
1943
1944
|
async persist() {
|
|
1944
1945
|
await this.io.writeText(this.path, JSON.stringify({
|
package/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as DomainMapCorruptError, A as ViewStateRegistry, B as renderProjectionContext, C as DOMAIN_GENERATION_PROMPT, D as DOMAIN_GENERATION_PROMPT_VERSION, E as DOMAIN_GENERATION_PROMPT_V2, F as applyProjectedDecision, G as restoreCatalog, H as captureCatalog, I as applyReplacementDecision, J as projectCatalog, K as buildDomainProjection, L as applyRestoreUpdate, M as canProject, N as deriveViewState, O as buildDomainGenerationPrompt, P as applyCapturedProjection, Q as DOMAIN_MAP_SCHEMA_VERSION, R as captureDecisionCatalog, S as parseDomainGenerationProposal, T as DOMAIN_GENERATION_PROMPT_V1, U as renderCatalog, V as restoreCapturedProjection, W as renderCatalogUpdate, X as evaluateDomainQuality, Y as sanitizeUntrustedText, Z as ProjectionJournal, _ as buildGenerationRequest, a as DISCOVERY_AWARENESS, at as mergeDomainPolicy, b as DomainGenerationError, c as AssignmentWorker, ct as bootstrapDomainMapWithFacts, d as MemoryAssignmentQueue, dt as validateDomainGeneration, et as DomainMapFileStore, f as assignmentKey, g as ViewSnapshotStore, h as validateProposal, i as shouldRegenerateDescription, it as DomainPolicyValidationError, j as canHide, k as ProjectionRuntime, l as JsonAssignmentQueue, lt as domainGenerationMode, m as proposalDigest, n as descriptionIsServable, nt as DomainMapVersionConflict, o as installDiscoveryAwareness, ot as DomainGenerationCoordinator, p as coveredByDomain, q as hiddenRecoverable, r as renderDomainDescription, rt as DomainPolicyStore, s as installAssignmentSidecar, st as bootstrapDomainMap, t as descriptionHashOf, tt as DomainMapValidationError, u as DomainAssignmentService, ut as mintDomainId, v as resolveGenerationPort, w as DOMAIN_GENERATION_PROMPT_HASH, x as LlmDomainGenerationPort, y as bootstrapFactsFromRows, z as findCatalogMessage } from "./domain-description-
|
|
1
|
+
import { $ as DomainMapCorruptError, A as ViewStateRegistry, B as renderProjectionContext, C as DOMAIN_GENERATION_PROMPT, D as DOMAIN_GENERATION_PROMPT_VERSION, E as DOMAIN_GENERATION_PROMPT_V2, F as applyProjectedDecision, G as restoreCatalog, H as captureCatalog, I as applyReplacementDecision, J as projectCatalog, K as buildDomainProjection, L as applyRestoreUpdate, M as canProject, N as deriveViewState, O as buildDomainGenerationPrompt, P as applyCapturedProjection, Q as DOMAIN_MAP_SCHEMA_VERSION, R as captureDecisionCatalog, S as parseDomainGenerationProposal, T as DOMAIN_GENERATION_PROMPT_V1, U as renderCatalog, V as restoreCapturedProjection, W as renderCatalogUpdate, X as evaluateDomainQuality, Y as sanitizeUntrustedText, Z as ProjectionJournal, _ as buildGenerationRequest, a as DISCOVERY_AWARENESS, at as mergeDomainPolicy, b as DomainGenerationError, c as AssignmentWorker, ct as bootstrapDomainMapWithFacts, d as MemoryAssignmentQueue, dt as validateDomainGeneration, et as DomainMapFileStore, f as assignmentKey, g as ViewSnapshotStore, h as validateProposal, i as shouldRegenerateDescription, it as DomainPolicyValidationError, j as canHide, k as ProjectionRuntime, l as JsonAssignmentQueue, lt as domainGenerationMode, m as proposalDigest, n as descriptionIsServable, nt as DomainMapVersionConflict, o as installDiscoveryAwareness, ot as DomainGenerationCoordinator, p as coveredByDomain, q as hiddenRecoverable, r as renderDomainDescription, rt as DomainPolicyStore, s as installAssignmentSidecar, st as bootstrapDomainMap, t as descriptionHashOf, tt as DomainMapValidationError, u as DomainAssignmentService, ut as mintDomainId, v as resolveGenerationPort, w as DOMAIN_GENERATION_PROMPT_HASH, x as LlmDomainGenerationPort, y as bootstrapFactsFromRows, z as findCatalogMessage } from "./domain-description-3MIOYgVH.js";
|
|
2
2
|
import { _ as skillKeyOf, a as SKILL_SEARCH_FIELDS, b as viewKeyOf, c as SkillSearchCache, d as SkillIndex, f as catalogRevisionOf, g as skillIndexRowOf, h as searchIndexKeyOf, i as searchWithDegraded, l as SkillSearchIndex, m as projectionDigestOf, n as isSkillSearch, o as SKILL_SEARCH_INDEX_SCHEMA_VERSION, p as policyDigestOf, r as registerSkillSearchTool, s as SKILL_SEARCH_TOKENIZER_VERSION, t as SKILL_SEARCH_DESCRIPTION, u as searchTerms, v as threeFieldHashOf, y as viewCatalogDigestOf } from "./tool-CvUTwKvW.js";
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
import { authorityFrom, evolutionIoAdapter, evolutionRoot, newSkillLibrary } from "@lmzhen/dsh-evolution-core";
|
package/lib/main-entry.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as buildDomainGenerationPrompt, Z as ProjectionJournal, _ as buildGenerationRequest, c as AssignmentWorker, et as DomainMapFileStore, g as ViewSnapshotStore, k as ProjectionRuntime, l as JsonAssignmentQueue, o as installDiscoveryAwareness, ot as DomainGenerationCoordinator, r as renderDomainDescription, rt as DomainPolicyStore, s as installAssignmentSidecar, t as descriptionHashOf, u as DomainAssignmentService, v as resolveGenerationPort } from "./domain-description-
|
|
1
|
+
import { O as buildDomainGenerationPrompt, Z as ProjectionJournal, _ as buildGenerationRequest, c as AssignmentWorker, et as DomainMapFileStore, g as ViewSnapshotStore, k as ProjectionRuntime, l as JsonAssignmentQueue, o as installDiscoveryAwareness, ot as DomainGenerationCoordinator, r as renderDomainDescription, rt as DomainPolicyStore, s as installAssignmentSidecar, t as descriptionHashOf, u as DomainAssignmentService, v as resolveGenerationPort } from "./domain-description-3MIOYgVH.js";
|
|
2
2
|
import { _ as skillKeyOf, c as SkillSearchCache, d as SkillIndex, r as registerSkillSearchTool } from "./tool-CvUTwKvW.js";
|
|
3
3
|
import { isAbsolute, join, resolve } from "node:path";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
@@ -148,11 +148,11 @@ function apply(ctx, config) {
|
|
|
148
148
|
scope: agent,
|
|
149
149
|
signal
|
|
150
150
|
});
|
|
151
|
-
const viewPolicy = await policyFor(cwd);
|
|
151
|
+
const viewPolicy = mode === "off" ? void 0 : await policyFor(cwd);
|
|
152
152
|
const cached = await searchCache.get({
|
|
153
153
|
viewKey: view.viewKey,
|
|
154
154
|
viewCatalogDigest: view.viewCatalogDigest,
|
|
155
|
-
policyDigest: viewPolicy
|
|
155
|
+
policyDigest: viewPolicy?.digest() ?? "off",
|
|
156
156
|
discoveryMode: mode
|
|
157
157
|
}, view.rows);
|
|
158
158
|
if (cached === void 0) {
|
|
@@ -3,7 +3,7 @@ import type { AssignmentQueue, AssignmentQueueEntry, AssignmentSubmission } from
|
|
|
3
3
|
/** Durable assignment queue; process-local cache over one JSON file. */
|
|
4
4
|
export declare class JsonAssignmentQueue implements AssignmentQueue {
|
|
5
5
|
private readonly entries;
|
|
6
|
-
private
|
|
6
|
+
private loadPromise;
|
|
7
7
|
private readonly io;
|
|
8
8
|
private readonly path;
|
|
9
9
|
constructor(io: EvolutionIoLike, path: string);
|
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.31.
|
|
4
|
+
"version": "0.31.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"@deepseek-ai/dsh-session": "^0.2.1-rc.2",
|
|
42
42
|
"@deepseek-ai/dsh-tools": "^0.2.1-rc.2",
|
|
43
43
|
"@deepseek-ai/dsh-system-prompt": "^0.2.1-rc.2",
|
|
44
|
-
"@lmzhen/dsh-evolution-core": "^0.31.
|
|
45
|
-
"@lmzhen/dsh-evolution-io": "^0.31.
|
|
44
|
+
"@lmzhen/dsh-evolution-core": "^0.31.1",
|
|
45
|
+
"@lmzhen/dsh-evolution-io": "^0.31.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@deepseek-ai/dsh-skill": "^0.2.1-rc.2",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"@deepseek-ai/dsh-tools": "^0.2.1-rc.2",
|
|
56
56
|
"@deepseek-ai/dsh-skill-filesystem": "^0.2.1-rc.2",
|
|
57
57
|
"@deepseek-ai/dsh-tool-skill": "^0.2.1-rc.2",
|
|
58
|
-
"@lmzhen/dsh-evolution-core": "^0.31.
|
|
59
|
-
"@lmzhen/dsh-evolution-io": "^0.31.
|
|
58
|
+
"@lmzhen/dsh-evolution-core": "^0.31.1",
|
|
59
|
+
"@lmzhen/dsh-evolution-io": "^0.31.1"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@deepseek-ai/dsh-llm": "^0.2.1-rc.2",
|