stratagate-dsh 0.2.84 → 0.2.87
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/CHANGELOG.md +17 -0
- package/README.md +2 -1
- package/README.zh-CN.md +4 -1
- package/cordis.patch.yml +2 -0
- package/dist/client.js +3 -3
- package/dist/index.d.ts +41 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/plugin.d.ts +41 -1
- package/dist/plugin.js +1365 -388
- package/dist/plugin.js.map +1 -1
- package/dist/repair-profile.js +1 -0
- package/dist/repair-profile.js.map +1 -1
- package/docs/DSH.md +43 -3
- package/docs/DSH.zh-CN.md +18 -3
- package/package.json +31 -30
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,8 @@ interface Config {
|
|
|
12
12
|
blockTurnSize?: number;
|
|
13
13
|
blockDecayLambda?: number;
|
|
14
14
|
ingestSubagents?: boolean;
|
|
15
|
+
agentMemoryEnabled?: boolean;
|
|
16
|
+
agentMemoryRetrievalWeight?: number;
|
|
15
17
|
provider?: string;
|
|
16
18
|
model?: string;
|
|
17
19
|
maxOutputTokens?: number;
|
|
@@ -21,7 +23,45 @@ interface Config {
|
|
|
21
23
|
showShortTermStatus?: boolean;
|
|
22
24
|
showRetrievalStatus?: boolean;
|
|
23
25
|
}
|
|
24
|
-
declare const Config: z__default<
|
|
26
|
+
declare const Config: z__default<Schemastery.ObjectS<NoInfer<{
|
|
27
|
+
database: z__default<string, string, "defined">;
|
|
28
|
+
sessionRoot: z__default<string, string, "plain">;
|
|
29
|
+
namespaceMode: z__default<"project" | "session" | "global", "project" | "session" | "global", "defined">;
|
|
30
|
+
namespacePrefix: z__default<string, string, "defined">;
|
|
31
|
+
globalNamespace: z__default<string, string, "defined">;
|
|
32
|
+
blockTurnSize: z__default<number, number, "defined">;
|
|
33
|
+
blockDecayLambda: z__default<number, number, "defined">;
|
|
34
|
+
ingestSubagents: z__default<boolean, boolean, "defined">;
|
|
35
|
+
agentMemoryEnabled: z__default<boolean, boolean, "defined">;
|
|
36
|
+
agentMemoryRetrievalWeight: z__default<number, number, "defined">;
|
|
37
|
+
provider: z__default<string, string, "plain">;
|
|
38
|
+
model: z__default<string, string, "plain">;
|
|
39
|
+
maxOutputTokens: z__default<number, number, "defined">;
|
|
40
|
+
structuredTaskTimeoutMs: z__default<number, number, "defined">;
|
|
41
|
+
structuredReasoningEffort: z__default<"auto" | "force-off", "auto" | "force-off", "defined">;
|
|
42
|
+
showStrataGateStatus: z__default<boolean, boolean, "defined">;
|
|
43
|
+
showShortTermStatus: z__default<boolean, boolean, "defined">;
|
|
44
|
+
showRetrievalStatus: z__default<boolean, boolean, "defined">;
|
|
45
|
+
}>>, Schemastery.ObjectT<NoInfer<{
|
|
46
|
+
database: z__default<string, string, "defined">;
|
|
47
|
+
sessionRoot: z__default<string, string, "plain">;
|
|
48
|
+
namespaceMode: z__default<"project" | "session" | "global", "project" | "session" | "global", "defined">;
|
|
49
|
+
namespacePrefix: z__default<string, string, "defined">;
|
|
50
|
+
globalNamespace: z__default<string, string, "defined">;
|
|
51
|
+
blockTurnSize: z__default<number, number, "defined">;
|
|
52
|
+
blockDecayLambda: z__default<number, number, "defined">;
|
|
53
|
+
ingestSubagents: z__default<boolean, boolean, "defined">;
|
|
54
|
+
agentMemoryEnabled: z__default<boolean, boolean, "defined">;
|
|
55
|
+
agentMemoryRetrievalWeight: z__default<number, number, "defined">;
|
|
56
|
+
provider: z__default<string, string, "plain">;
|
|
57
|
+
model: z__default<string, string, "plain">;
|
|
58
|
+
maxOutputTokens: z__default<number, number, "defined">;
|
|
59
|
+
structuredTaskTimeoutMs: z__default<number, number, "defined">;
|
|
60
|
+
structuredReasoningEffort: z__default<"auto" | "force-off", "auto" | "force-off", "defined">;
|
|
61
|
+
showStrataGateStatus: z__default<boolean, boolean, "defined">;
|
|
62
|
+
showShortTermStatus: z__default<boolean, boolean, "defined">;
|
|
63
|
+
showRetrievalStatus: z__default<boolean, boolean, "defined">;
|
|
64
|
+
}>>, "plain">;
|
|
25
65
|
|
|
26
66
|
declare const name = "stratagate-memory";
|
|
27
67
|
declare const inject: string[];
|
package/dist/index.js
CHANGED
|
@@ -8,6 +8,7 @@ var HOST_PACKAGES = [
|
|
|
8
8
|
"@deepseek-ai/dsh-agent-default-model",
|
|
9
9
|
"@deepseek-ai/dsh-client-ui-conversation",
|
|
10
10
|
"@deepseek-ai/dsh-llm",
|
|
11
|
+
"@deepseek-ai/dsh-native-command",
|
|
11
12
|
"@deepseek-ai/dsh-session",
|
|
12
13
|
"@deepseek-ai/dsh-session-format",
|
|
13
14
|
"@deepseek-ai/dsh-session-format-catalog",
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/dsh-host-resolution.ts","../src/bootstrap.ts"],"sourcesContent":["import { existsSync, readFileSync } from 'node:fs'\nimport { createRequire, registerHooks } from 'node:module'\nimport { dirname, isAbsolute, join, relative } from 'node:path'\nimport { fileURLToPath, pathToFileURL } from 'node:url'\n\nconst HOST_PACKAGES = [\n '@deepseek-ai/cordis',\n '@deepseek-ai/dsh-agent-default-model',\n '@deepseek-ai/dsh-client-ui-conversation',\n '@deepseek-ai/dsh-llm',\n '@deepseek-ai/dsh-session',\n '@deepseek-ai/dsh-session-format',\n '@deepseek-ai/dsh-session-format-catalog',\n '@deepseek-ai/dsh-session-format-v0-to-v1',\n '@deepseek-ai/dsh-settings',\n '@deepseek-ai/dsh-system-prompt',\n '@deepseek-ai/dsh-tools',\n '@deepseek-ai/schemastery',\n] as const\n\nconst installedHooks = Symbol.for('stratagate.dsh-host-resolution.v1')\n\nfunction isWithin(path: string, root: string): boolean {\n const child = relative(root, path)\n return child === '' || (!child.startsWith('..') && !isAbsolute(child))\n}\n\nfunction profileDirectory(start: string): string | undefined {\n let directory = start\n for (;;) {\n const manifestPath = join(directory, 'package.json')\n if (existsSync(manifestPath)) {\n try {\n const manifest = JSON.parse(readFileSync(manifestPath, 'utf8')) as { dsh?: { profile?: unknown } }\n if (manifest.dsh?.profile && typeof manifest.dsh.profile === 'object') return directory\n } catch {}\n }\n const parent = dirname(directory)\n if (parent === directory) return undefined\n directory = parent\n }\n}\n\nfunction hostPackage(specifier: string): boolean {\n return HOST_PACKAGES.some((name) => specifier === name || specifier.startsWith(`${name}/`))\n}\n\n/**\n * Force only StrataGate's DSH imports through the installation-owned fallback\n * created by DSH. The hook neither deletes nor rewrites the profile's package\n * tree, and imports belonging to the host or other plugins are untouched.\n */\nexport function installDshHostResolution(moduleUrl: string): boolean {\n const packageDirectory = dirname(dirname(fileURLToPath(moduleUrl)))\n const profile = profileDirectory(packageDirectory)\n if (!profile) return false\n\n const globalState = globalThis as typeof globalThis & { [installedHooks]?: Set<string> }\n const installed = globalState[installedHooks] ??= new Set<string>()\n const key = `${profile}\\u0000${packageDirectory}`\n if (installed.has(key)) return true\n\n const fallbackModules = join(dirname(profile), 'node_modules')\n const hostRequire = createRequire(join(fallbackModules, '.stratagate-host-resolution.cjs'))\n registerHooks({\n resolve(specifier, context, nextResolve) {\n const parent = context.parentURL?.startsWith('file:') ? fileURLToPath(context.parentURL) : undefined\n if (!hostPackage(specifier) || !parent || !isWithin(parent, packageDirectory)) {\n return nextResolve(specifier, context)\n }\n try {\n return { url: pathToFileURL(hostRequire.resolve(specifier)).href, shortCircuit: true }\n } catch (cause) {\n if (specifier === '@deepseek-ai/dsh-session-format-v0-to-v1'\n || specifier === '@deepseek-ai/dsh-session-format-catalog') {\n return nextResolve(specifier, context)\n }\n throw new Error(\n `StrataGate cannot resolve host-provided DSH package ${JSON.stringify(specifier)} from ${fallbackModules}. `\n + 'Start StrataGate through the DSH profile launcher so the host can prepare its module fallback.',\n { cause },\n )\n }\n },\n })\n installed.add(key)\n return true\n}\n","import { installDshHostResolution } from './dsh-host-resolution.js'\n\n// DSH prepares its installation-owned module fallback before it imports a\n// profile bundle. Install the narrowly-scoped resolver first, then load the\n// implementation so stale profile-local peers cannot win ESM resolution.\ninstallDshHostResolution(import.meta.url)\n\n// This file and src/index.ts are separate tsup entries. The runtime path is\n// intentionally external so the implementation is instantiated only after\n// the resolver above is active.\n// @ts-expect-error dist/plugin.js is emitted from src/index.ts during build.\nconst plugin = await import('./plugin.js') as typeof import('./index.js')\n\nexport const name = plugin.name\nexport const inject = plugin.inject\nexport const STRATAGATE_SETTINGS_NAMESPACE = plugin.STRATAGATE_SETTINGS_NAMESPACE\nexport const Config = plugin.Config\nexport const apply = plugin.apply\nexport type PluginConfig = import('./index.js').PluginConfig\n"],"mappings":";AAAA,SAAS,YAAY,oBAAoB;AACzC,SAAS,eAAe,qBAAqB;AAC7C,SAAS,SAAS,YAAY,MAAM,gBAAgB;AACpD,SAAS,eAAe,qBAAqB;AAE7C,IAAM,gBAAgB;AAAA,EACpB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEA,IAAM,iBAAiB,uBAAO,IAAI,mCAAmC;AAErE,SAAS,SAAS,MAAc,MAAuB;AACrD,QAAM,QAAQ,SAAS,MAAM,IAAI;AACjC,SAAO,UAAU,MAAO,CAAC,MAAM,WAAW,IAAI,KAAK,CAAC,WAAW,KAAK;AACtE;AAEA,SAAS,iBAAiB,OAAmC;AAC3D,MAAI,YAAY;AAChB,aAAS;AACP,UAAM,eAAe,KAAK,WAAW,cAAc;AACnD,QAAI,WAAW,YAAY,GAAG;AAC5B,UAAI;AACF,cAAM,WAAW,KAAK,MAAM,aAAa,cAAc,MAAM,CAAC;AAC9D,YAAI,SAAS,KAAK,WAAW,OAAO,SAAS,IAAI,YAAY,SAAU,QAAO;AAAA,MAChF,QAAQ;AAAA,MAAC;AAAA,IACX;AACA,UAAM,SAAS,QAAQ,SAAS;AAChC,QAAI,WAAW,UAAW,QAAO;AACjC,gBAAY;AAAA,EACd;AACF;AAEA,SAAS,YAAY,WAA4B;AAC/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node:fs'\nimport { createRequire, registerHooks } from 'node:module'\nimport { dirname, isAbsolute, join, relative } from 'node:path'\nimport { fileURLToPath, pathToFileURL } from 'node:url'\n\nconst HOST_PACKAGES = [\n '@deepseek-ai/cordis',\n '@deepseek-ai/dsh-agent-default-model',\n '@deepseek-ai/dsh-client-ui-conversation',\n '@deepseek-ai/dsh-llm',\n '@deepseek-ai/dsh-native-command',\n '@deepseek-ai/dsh-session',\n '@deepseek-ai/dsh-session-format',\n '@deepseek-ai/dsh-session-format-catalog',\n '@deepseek-ai/dsh-session-format-v0-to-v1',\n '@deepseek-ai/dsh-settings',\n '@deepseek-ai/dsh-system-prompt',\n '@deepseek-ai/dsh-tools',\n '@deepseek-ai/schemastery',\n] as const\n\nconst installedHooks = Symbol.for('stratagate.dsh-host-resolution.v1')\n\nfunction isWithin(path: string, root: string): boolean {\n const child = relative(root, path)\n return child === '' || (!child.startsWith('..') && !isAbsolute(child))\n}\n\nfunction profileDirectory(start: string): string | undefined {\n let directory = start\n for (;;) {\n const manifestPath = join(directory, 'package.json')\n if (existsSync(manifestPath)) {\n try {\n const manifest = JSON.parse(readFileSync(manifestPath, 'utf8')) as { dsh?: { profile?: unknown } }\n if (manifest.dsh?.profile && typeof manifest.dsh.profile === 'object') return directory\n } catch {}\n }\n const parent = dirname(directory)\n if (parent === directory) return undefined\n directory = parent\n }\n}\n\nfunction hostPackage(specifier: string): boolean {\n return HOST_PACKAGES.some((name) => specifier === name || specifier.startsWith(`${name}/`))\n}\n\n/**\n * Force only StrataGate's DSH imports through the installation-owned fallback\n * created by DSH. The hook neither deletes nor rewrites the profile's package\n * tree, and imports belonging to the host or other plugins are untouched.\n */\nexport function installDshHostResolution(moduleUrl: string): boolean {\n const packageDirectory = dirname(dirname(fileURLToPath(moduleUrl)))\n const profile = profileDirectory(packageDirectory)\n if (!profile) return false\n\n const globalState = globalThis as typeof globalThis & { [installedHooks]?: Set<string> }\n const installed = globalState[installedHooks] ??= new Set<string>()\n const key = `${profile}\\u0000${packageDirectory}`\n if (installed.has(key)) return true\n\n const fallbackModules = join(dirname(profile), 'node_modules')\n const hostRequire = createRequire(join(fallbackModules, '.stratagate-host-resolution.cjs'))\n registerHooks({\n resolve(specifier, context, nextResolve) {\n const parent = context.parentURL?.startsWith('file:') ? fileURLToPath(context.parentURL) : undefined\n if (!hostPackage(specifier) || !parent || !isWithin(parent, packageDirectory)) {\n return nextResolve(specifier, context)\n }\n try {\n return { url: pathToFileURL(hostRequire.resolve(specifier)).href, shortCircuit: true }\n } catch (cause) {\n if (specifier === '@deepseek-ai/dsh-session-format-v0-to-v1'\n || specifier === '@deepseek-ai/dsh-session-format-catalog') {\n return nextResolve(specifier, context)\n }\n throw new Error(\n `StrataGate cannot resolve host-provided DSH package ${JSON.stringify(specifier)} from ${fallbackModules}. `\n + 'Start StrataGate through the DSH profile launcher so the host can prepare its module fallback.',\n { cause },\n )\n }\n },\n })\n installed.add(key)\n return true\n}\n","import { installDshHostResolution } from './dsh-host-resolution.js'\n\n// DSH prepares its installation-owned module fallback before it imports a\n// profile bundle. Install the narrowly-scoped resolver first, then load the\n// implementation so stale profile-local peers cannot win ESM resolution.\ninstallDshHostResolution(import.meta.url)\n\n// This file and src/index.ts are separate tsup entries. The runtime path is\n// intentionally external so the implementation is instantiated only after\n// the resolver above is active.\n// @ts-expect-error dist/plugin.js is emitted from src/index.ts during build.\nconst plugin = await import('./plugin.js') as typeof import('./index.js')\n\nexport const name = plugin.name\nexport const inject = plugin.inject\nexport const STRATAGATE_SETTINGS_NAMESPACE = plugin.STRATAGATE_SETTINGS_NAMESPACE\nexport const Config = plugin.Config\nexport const apply = plugin.apply\nexport type PluginConfig = import('./index.js').PluginConfig\n"],"mappings":";AAAA,SAAS,YAAY,oBAAoB;AACzC,SAAS,eAAe,qBAAqB;AAC7C,SAAS,SAAS,YAAY,MAAM,gBAAgB;AACpD,SAAS,eAAe,qBAAqB;AAE7C,IAAM,gBAAgB;AAAA,EACpB;AAAA,EACA;AAAA,EACA;A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gBAAc;AAAA,IACZ,QAAQ,WAAW,SAAS,aAAa;AACvC,YAAM,SAAS,QAAQ,WAAW,WAAW,OAAO,IAAI,cAAc,QAAQ,SAAS,IAAI;AAC3F,UAAI,CAAC,YAAY,SAAS,KAAK,CAAC,UAAU,CAAC,SAAS,QAAQ,gBAAgB,GAAG;AAC7E,eAAO,YAAY,WAAW,OAAO;AAAA,MACvC;AACA,UAAI;AACF,eAAO,EAAE,KAAK,cAAc,YAAY,QAAQ,SAAS,CAAC,EAAE,MAAM,cAAc,KAAK;AAAA,MACvF,SAAS,OAAO;AACd,YAAI,cAAc,8CACb,cAAc,2CAA2C;AAC5D,iBAAO,YAAY,WAAW,OAAO;AAAA,QACvC;AACA,cAAM,IAAI;AAAA,UACR,uDAAuD,KAAK,UAAU,SAAS,CAAC,SAAS,eAAe;AAAA,UAExG,EAAE,MAAM;AAAA,QACV;AAAA,MACF;AAAA,IACF;AAAA,EACF,CAAC;AACD,YAAU,IAAI,GAAG;AACjB,SAAO;AACT;;;ACnFA,yBAAyB,YAAY,GAAG;AAMxC,IAAM,SAAS,MAAM,OAAO,aAAa;AAElC,IAAM,OAAO,OAAO;AACpB,IAAM,SAAS,OAAO;AACtB,IAAM,gCAAgC,OAAO;AAC7C,IAAM,SAAS,OAAO;AACtB,IAAM,QAAQ,OAAO;","names":["name"]}
|
package/dist/plugin.d.ts
CHANGED
|
@@ -12,6 +12,8 @@ interface Config {
|
|
|
12
12
|
blockTurnSize?: number;
|
|
13
13
|
blockDecayLambda?: number;
|
|
14
14
|
ingestSubagents?: boolean;
|
|
15
|
+
agentMemoryEnabled?: boolean;
|
|
16
|
+
agentMemoryRetrievalWeight?: number;
|
|
15
17
|
provider?: string;
|
|
16
18
|
model?: string;
|
|
17
19
|
maxOutputTokens?: number;
|
|
@@ -21,7 +23,45 @@ interface Config {
|
|
|
21
23
|
showShortTermStatus?: boolean;
|
|
22
24
|
showRetrievalStatus?: boolean;
|
|
23
25
|
}
|
|
24
|
-
declare const Config: z__default<
|
|
26
|
+
declare const Config: z__default<Schemastery.ObjectS<NoInfer<{
|
|
27
|
+
database: z__default<string, string, "defined">;
|
|
28
|
+
sessionRoot: z__default<string, string, "plain">;
|
|
29
|
+
namespaceMode: z__default<"project" | "session" | "global", "project" | "session" | "global", "defined">;
|
|
30
|
+
namespacePrefix: z__default<string, string, "defined">;
|
|
31
|
+
globalNamespace: z__default<string, string, "defined">;
|
|
32
|
+
blockTurnSize: z__default<number, number, "defined">;
|
|
33
|
+
blockDecayLambda: z__default<number, number, "defined">;
|
|
34
|
+
ingestSubagents: z__default<boolean, boolean, "defined">;
|
|
35
|
+
agentMemoryEnabled: z__default<boolean, boolean, "defined">;
|
|
36
|
+
agentMemoryRetrievalWeight: z__default<number, number, "defined">;
|
|
37
|
+
provider: z__default<string, string, "plain">;
|
|
38
|
+
model: z__default<string, string, "plain">;
|
|
39
|
+
maxOutputTokens: z__default<number, number, "defined">;
|
|
40
|
+
structuredTaskTimeoutMs: z__default<number, number, "defined">;
|
|
41
|
+
structuredReasoningEffort: z__default<"auto" | "force-off", "auto" | "force-off", "defined">;
|
|
42
|
+
showStrataGateStatus: z__default<boolean, boolean, "defined">;
|
|
43
|
+
showShortTermStatus: z__default<boolean, boolean, "defined">;
|
|
44
|
+
showRetrievalStatus: z__default<boolean, boolean, "defined">;
|
|
45
|
+
}>>, Schemastery.ObjectT<NoInfer<{
|
|
46
|
+
database: z__default<string, string, "defined">;
|
|
47
|
+
sessionRoot: z__default<string, string, "plain">;
|
|
48
|
+
namespaceMode: z__default<"project" | "session" | "global", "project" | "session" | "global", "defined">;
|
|
49
|
+
namespacePrefix: z__default<string, string, "defined">;
|
|
50
|
+
globalNamespace: z__default<string, string, "defined">;
|
|
51
|
+
blockTurnSize: z__default<number, number, "defined">;
|
|
52
|
+
blockDecayLambda: z__default<number, number, "defined">;
|
|
53
|
+
ingestSubagents: z__default<boolean, boolean, "defined">;
|
|
54
|
+
agentMemoryEnabled: z__default<boolean, boolean, "defined">;
|
|
55
|
+
agentMemoryRetrievalWeight: z__default<number, number, "defined">;
|
|
56
|
+
provider: z__default<string, string, "plain">;
|
|
57
|
+
model: z__default<string, string, "plain">;
|
|
58
|
+
maxOutputTokens: z__default<number, number, "defined">;
|
|
59
|
+
structuredTaskTimeoutMs: z__default<number, number, "defined">;
|
|
60
|
+
structuredReasoningEffort: z__default<"auto" | "force-off", "auto" | "force-off", "defined">;
|
|
61
|
+
showStrataGateStatus: z__default<boolean, boolean, "defined">;
|
|
62
|
+
showShortTermStatus: z__default<boolean, boolean, "defined">;
|
|
63
|
+
showRetrievalStatus: z__default<boolean, boolean, "defined">;
|
|
64
|
+
}>>, "plain">;
|
|
25
65
|
|
|
26
66
|
declare const name = "stratagate-memory";
|
|
27
67
|
declare const inject: string[];
|