@foggy-projects/deepseek-harness-plugin 0.4.2-rc.3 → 0.4.4-rc.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.
- package/README.md +222 -173
- package/THIRD-PARTY-RUNTIME-NOTICES.md +16 -16
- package/cordis.patch.yml +6 -6
- package/docs/COMMUNITY-MARKETPLACES.md +64 -64
- package/docs/PUBLIC-BETA-READINESS.md +109 -109
- package/docs/RELEASE-CANDIDATE-0.4.0-RC.2.md +38 -38
- package/docs/RELEASE-CANDIDATE-0.4.0-RC.3.md +18 -18
- package/docs/RELEASE-CANDIDATE-0.4.1-DSH-0.1.5-RC.1.md +60 -60
- package/docs/RELEASE-CANDIDATE-0.4.2-DSH-0.1.7-RC.1.md +62 -62
- package/docs/RELEASE-CANDIDATE-0.4.2-DSH-0.1.7-RC.2.md +50 -50
- package/docs/RELEASE-CANDIDATE-0.4.2-DSH-0.1.7-RC.3.md +34 -34
- package/docs/RELEASE-CANDIDATE-0.4.2-DSH-0.1.7-RC.4.md +32 -0
- package/docs/RELEASE-CANDIDATE-0.4.2-DSH-0.1.7-RC.5.md +27 -0
- package/docs/RELEASE-CANDIDATE-0.4.3-DSH-0.2.0-RC.1.md +96 -0
- package/docs/RELEASE-CANDIDATE-0.4.4-DSH-0.2.1-RC.1.md +135 -0
- package/docs/WINDOWS-BETA-ACCEPTANCE.md +113 -113
- package/experience/linux/README.md +53 -53
- package/experience/linux/prepare.sh +2 -2
- package/lib/atomic-json.js +41 -41
- package/lib/client.js +1222 -906
- package/lib/component-manager.js +164 -0
- package/lib/component-releases.js +363 -0
- package/lib/diagnostics.js +86 -86
- package/lib/index.js +764 -698
- package/lib/operation-lock.js +139 -0
- package/lib/python-runtime.js +339 -339
- package/lib/query-tool.js +134 -104
- package/lib/remote-descriptor.js +74 -59
- package/lib/remote.js +8 -8
- package/lib/runtime-settings.js +89 -89
- package/lib/skill-provider.js +116 -116
- package/lib/typert.js +9 -9
- package/lib/version.js +20 -20
- package/lib/viewer-preview.js +44 -27
- package/package.json +25 -15
- package/skills/foggy-deepseek-onboarding/SKILL.md +149 -143
- package/skills/foggy-deepseek-onboarding/assets/connection.schema.json +48 -48
- package/skills/foggy-deepseek-onboarding/assets/datasource.example.json +14 -14
- package/skills/foggy-deepseek-onboarding/assets/env.example +14 -14
- package/skills/foggy-deepseek-onboarding/assets/onboarding-state.schema.json +71 -71
- package/skills/foggy-deepseek-onboarding/assets/semantic-plan.example.json +8 -8
- package/skills/foggy-deepseek-onboarding/assets/semantic-plan.schema.json +21 -21
- package/skills/foggy-deepseek-onboarding/assets/versions.json +23 -23
- package/skills/foggy-deepseek-onboarding/references/onboarding-workflow.md +168 -168
- package/skills/foggy-deepseek-onboarding/scripts/doctor.ps1 +4 -4
- package/skills/foggy-deepseek-onboarding/scripts/install.ps1 +4 -4
- package/skills/foggy-deepseek-onboarding/scripts/invoke-onboarding.ps1 +32 -32
- package/skills/foggy-deepseek-onboarding/scripts/onboard.ps1 +4 -4
- package/skills/foggy-deepseek-onboarding/scripts/onboarding.py +3721 -3681
- package/skills/foggy-deepseek-onboarding/scripts/runtime-start.ps1 +4 -4
- package/skills/foggy-deepseek-onboarding/scripts/runtime-stop.ps1 +4 -4
- package/skills/foggy-deepseek-onboarding/scripts/uninstall.ps1 +4 -4
package/lib/skill-provider.js
CHANGED
|
@@ -1,116 +1,116 @@
|
|
|
1
|
-
import { access, readFile } from 'node:fs/promises'
|
|
2
|
-
import { constants as fsConstants } from 'node:fs'
|
|
3
|
-
import { dirname, join } from 'node:path'
|
|
4
|
-
import { fileURLToPath } from 'node:url'
|
|
5
|
-
import { BUNDLED_SKILL_RANK } from '@deepseek-ai/dsh-skill'
|
|
6
|
-
|
|
7
|
-
const packageRoot = dirname(dirname(fileURLToPath(import.meta.url)))
|
|
8
|
-
const onboardingRoot = join(packageRoot, 'skills', 'foggy-deepseek-onboarding')
|
|
9
|
-
const onboardingPath = join(onboardingRoot, 'SKILL.md')
|
|
10
|
-
const providerName = 'foggy-managed-skills'
|
|
11
|
-
const invocation = { modelInvocable: true, userInvocable: true }
|
|
12
|
-
|
|
13
|
-
async function exists(path) {
|
|
14
|
-
try {
|
|
15
|
-
await access(path, fsConstants.F_OK)
|
|
16
|
-
return true
|
|
17
|
-
} catch {
|
|
18
|
-
return false
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
async function readOptionalJson(path) {
|
|
23
|
-
try {
|
|
24
|
-
return JSON.parse(await readFile(path, 'utf8'))
|
|
25
|
-
} catch {
|
|
26
|
-
return null
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
function parseSkill(source, expectedName) {
|
|
31
|
-
const match = source.match(/^---\r?\n([\s\S]*?)\r?\n---\r?\n?([\s\S]*)$/)
|
|
32
|
-
if (!match) throw new Error(`Foggy Skill ${expectedName} has no valid frontmatter`)
|
|
33
|
-
const metadata = Object.fromEntries(match[1].split(/\r?\n/).flatMap((line) => {
|
|
34
|
-
const separator = line.indexOf(':')
|
|
35
|
-
if (separator < 1) return []
|
|
36
|
-
return [[line.slice(0, separator).trim(), line.slice(separator + 1).trim().replace(/^(['\"])(.*)\1$/, '$2')]]
|
|
37
|
-
}))
|
|
38
|
-
if (metadata.name !== expectedName || !metadata.description) {
|
|
39
|
-
throw new Error(`Foggy Skill ${expectedName} has invalid name or description metadata`)
|
|
40
|
-
}
|
|
41
|
-
return { metadata, content: match[2] }
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
function candidate(name, description, path, source) {
|
|
45
|
-
const root = dirname(path)
|
|
46
|
-
return {
|
|
47
|
-
name,
|
|
48
|
-
description,
|
|
49
|
-
invocation,
|
|
50
|
-
provider: providerName,
|
|
51
|
-
source,
|
|
52
|
-
resourceBase: { kind: 'directory', path: root },
|
|
53
|
-
rank: BUNDLED_SKILL_RANK,
|
|
54
|
-
locator: { name, path },
|
|
55
|
-
path,
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
async function managedSkill(installRoot, manifest, { stateKey, componentKey, kind }) {
|
|
60
|
-
const state = await readOptionalJson(join(installRoot, 'install-state.json'))
|
|
61
|
-
const path = state?.skills?.[stateKey]?.path
|
|
62
|
-
if (!path || !await exists(join(path, 'SKILL.md'))) return null
|
|
63
|
-
const marker = await readOptionalJson(join(path, '.foggy-managed-skill.json'))
|
|
64
|
-
if (
|
|
65
|
-
marker?.schemaVersion !== 'foggy-managed-skill/v1'
|
|
66
|
-
|| marker?.kind !== kind
|
|
67
|
-
|| marker?.componentVersion !== manifest.components[componentKey].version
|
|
68
|
-
) return null
|
|
69
|
-
return join(path, 'SKILL.md')
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export function createFoggySkillProvider({ installRoot, versionsFile }) {
|
|
73
|
-
return {
|
|
74
|
-
name: providerName,
|
|
75
|
-
async list(options = {}) {
|
|
76
|
-
if (options.signal?.aborted) return []
|
|
77
|
-
const manifest = await readOptionalJson(versionsFile)
|
|
78
|
-
const onboarding = parseSkill(await readFile(onboardingPath, 'utf8'), 'foggy-deepseek-onboarding')
|
|
79
|
-
const result = [candidate(
|
|
80
|
-
'foggy-deepseek-onboarding',
|
|
81
|
-
onboarding.metadata.description,
|
|
82
|
-
onboardingPath,
|
|
83
|
-
'bundled',
|
|
84
|
-
)]
|
|
85
|
-
if (!manifest) return result
|
|
86
|
-
const managedSkills = [
|
|
87
|
-
{ name: 'foggy-ai-analysis', stateKey: 'analysis', componentKey: 'analysisSkill', kind: 'analysis' },
|
|
88
|
-
{ name: 'foggy-semantic-query', stateKey: 'semanticQuery', componentKey: 'semanticQuerySkill', kind: 'semantic-query' },
|
|
89
|
-
]
|
|
90
|
-
for (const spec of managedSkills) {
|
|
91
|
-
const path = await managedSkill(installRoot, manifest, spec)
|
|
92
|
-
if (!path) continue
|
|
93
|
-
const skill = parseSkill(await readFile(path, 'utf8'), spec.name)
|
|
94
|
-
result.push(candidate(spec.name, skill.metadata.description, path, 'bundled'))
|
|
95
|
-
}
|
|
96
|
-
return result
|
|
97
|
-
},
|
|
98
|
-
async get(selected, options = {}) {
|
|
99
|
-
if (options.signal?.aborted) return undefined
|
|
100
|
-
const locator = selected?.locator
|
|
101
|
-
if (!locator?.name || !locator?.path || !await exists(locator.path)) return undefined
|
|
102
|
-
const parsed = parseSkill(await readFile(locator.path, 'utf8'), locator.name)
|
|
103
|
-
return {
|
|
104
|
-
name: locator.name,
|
|
105
|
-
description: parsed.metadata.description,
|
|
106
|
-
invocation,
|
|
107
|
-
provider: providerName,
|
|
108
|
-
source: selected.source,
|
|
109
|
-
resourceBase: { kind: 'directory', path: dirname(locator.path) },
|
|
110
|
-
content: parsed.content,
|
|
111
|
-
path: locator.path,
|
|
112
|
-
metadata: parsed.metadata,
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
}
|
|
116
|
-
}
|
|
1
|
+
import { access, readFile } from 'node:fs/promises'
|
|
2
|
+
import { constants as fsConstants } from 'node:fs'
|
|
3
|
+
import { dirname, join } from 'node:path'
|
|
4
|
+
import { fileURLToPath } from 'node:url'
|
|
5
|
+
import { BUNDLED_SKILL_RANK } from '@deepseek-ai/dsh-skill'
|
|
6
|
+
|
|
7
|
+
const packageRoot = dirname(dirname(fileURLToPath(import.meta.url)))
|
|
8
|
+
const onboardingRoot = join(packageRoot, 'skills', 'foggy-deepseek-onboarding')
|
|
9
|
+
const onboardingPath = join(onboardingRoot, 'SKILL.md')
|
|
10
|
+
const providerName = 'foggy-managed-skills'
|
|
11
|
+
const invocation = { modelInvocable: true, userInvocable: true }
|
|
12
|
+
|
|
13
|
+
async function exists(path) {
|
|
14
|
+
try {
|
|
15
|
+
await access(path, fsConstants.F_OK)
|
|
16
|
+
return true
|
|
17
|
+
} catch {
|
|
18
|
+
return false
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
async function readOptionalJson(path) {
|
|
23
|
+
try {
|
|
24
|
+
return JSON.parse(await readFile(path, 'utf8'))
|
|
25
|
+
} catch {
|
|
26
|
+
return null
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function parseSkill(source, expectedName) {
|
|
31
|
+
const match = source.match(/^---\r?\n([\s\S]*?)\r?\n---\r?\n?([\s\S]*)$/)
|
|
32
|
+
if (!match) throw new Error(`Foggy Skill ${expectedName} has no valid frontmatter`)
|
|
33
|
+
const metadata = Object.fromEntries(match[1].split(/\r?\n/).flatMap((line) => {
|
|
34
|
+
const separator = line.indexOf(':')
|
|
35
|
+
if (separator < 1) return []
|
|
36
|
+
return [[line.slice(0, separator).trim(), line.slice(separator + 1).trim().replace(/^(['\"])(.*)\1$/, '$2')]]
|
|
37
|
+
}))
|
|
38
|
+
if (metadata.name !== expectedName || !metadata.description) {
|
|
39
|
+
throw new Error(`Foggy Skill ${expectedName} has invalid name or description metadata`)
|
|
40
|
+
}
|
|
41
|
+
return { metadata, content: match[2] }
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function candidate(name, description, path, source) {
|
|
45
|
+
const root = dirname(path)
|
|
46
|
+
return {
|
|
47
|
+
name,
|
|
48
|
+
description,
|
|
49
|
+
invocation,
|
|
50
|
+
provider: providerName,
|
|
51
|
+
source,
|
|
52
|
+
resourceBase: { kind: 'directory', path: root },
|
|
53
|
+
rank: BUNDLED_SKILL_RANK,
|
|
54
|
+
locator: { name, path },
|
|
55
|
+
path,
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
async function managedSkill(installRoot, manifest, { stateKey, componentKey, kind }) {
|
|
60
|
+
const state = await readOptionalJson(join(installRoot, 'install-state.json'))
|
|
61
|
+
const path = state?.skills?.[stateKey]?.path
|
|
62
|
+
if (!path || !await exists(join(path, 'SKILL.md'))) return null
|
|
63
|
+
const marker = await readOptionalJson(join(path, '.foggy-managed-skill.json'))
|
|
64
|
+
if (
|
|
65
|
+
marker?.schemaVersion !== 'foggy-managed-skill/v1'
|
|
66
|
+
|| marker?.kind !== kind
|
|
67
|
+
|| marker?.componentVersion !== manifest.components[componentKey].version
|
|
68
|
+
) return null
|
|
69
|
+
return join(path, 'SKILL.md')
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function createFoggySkillProvider({ installRoot, versionsFile }) {
|
|
73
|
+
return {
|
|
74
|
+
name: providerName,
|
|
75
|
+
async list(options = {}) {
|
|
76
|
+
if (options.signal?.aborted) return []
|
|
77
|
+
const manifest = await readOptionalJson(versionsFile)
|
|
78
|
+
const onboarding = parseSkill(await readFile(onboardingPath, 'utf8'), 'foggy-deepseek-onboarding')
|
|
79
|
+
const result = [candidate(
|
|
80
|
+
'foggy-deepseek-onboarding',
|
|
81
|
+
onboarding.metadata.description,
|
|
82
|
+
onboardingPath,
|
|
83
|
+
'bundled',
|
|
84
|
+
)]
|
|
85
|
+
if (!manifest) return result
|
|
86
|
+
const managedSkills = [
|
|
87
|
+
{ name: 'foggy-ai-analysis', stateKey: 'analysis', componentKey: 'analysisSkill', kind: 'analysis' },
|
|
88
|
+
{ name: 'foggy-semantic-query', stateKey: 'semanticQuery', componentKey: 'semanticQuerySkill', kind: 'semantic-query' },
|
|
89
|
+
]
|
|
90
|
+
for (const spec of managedSkills) {
|
|
91
|
+
const path = await managedSkill(installRoot, manifest, spec)
|
|
92
|
+
if (!path) continue
|
|
93
|
+
const skill = parseSkill(await readFile(path, 'utf8'), spec.name)
|
|
94
|
+
result.push(candidate(spec.name, skill.metadata.description, path, 'bundled'))
|
|
95
|
+
}
|
|
96
|
+
return result
|
|
97
|
+
},
|
|
98
|
+
async get(selected, options = {}) {
|
|
99
|
+
if (options.signal?.aborted) return undefined
|
|
100
|
+
const locator = selected?.locator
|
|
101
|
+
if (!locator?.name || !locator?.path || !await exists(locator.path)) return undefined
|
|
102
|
+
const parsed = parseSkill(await readFile(locator.path, 'utf8'), locator.name)
|
|
103
|
+
return {
|
|
104
|
+
name: locator.name,
|
|
105
|
+
description: parsed.metadata.description,
|
|
106
|
+
invocation,
|
|
107
|
+
provider: providerName,
|
|
108
|
+
source: selected.source,
|
|
109
|
+
resourceBase: { kind: 'directory', path: dirname(locator.path) },
|
|
110
|
+
content: parsed.content,
|
|
111
|
+
path: locator.path,
|
|
112
|
+
metadata: parsed.metadata,
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
}
|
|
116
|
+
}
|
package/lib/typert.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { descriptors } from './remote-descriptor.js'
|
|
2
|
-
|
|
3
|
-
export const TYPERT = {
|
|
4
|
-
package: '@foggy-projects/deepseek-harness-plugin',
|
|
5
|
-
face: 'host',
|
|
6
|
-
schemas: [],
|
|
7
|
-
invocations: descriptors,
|
|
8
|
-
model: { services: [], events: [], objects: [] },
|
|
9
|
-
}
|
|
1
|
+
import { descriptors } from './remote-descriptor.js'
|
|
2
|
+
|
|
3
|
+
export const TYPERT = {
|
|
4
|
+
package: '@foggy-projects/deepseek-harness-plugin',
|
|
5
|
+
face: 'host',
|
|
6
|
+
schemas: [],
|
|
7
|
+
invocations: descriptors,
|
|
8
|
+
model: { services: [], events: [], objects: [] },
|
|
9
|
+
}
|
package/lib/version.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export function versionParts(text) {
|
|
2
|
-
const match = String(text).match(/(\d+)(?:\.(\d+))?(?:\.(\d+))?/)
|
|
3
|
-
return match ? match.slice(1).map((part) => Number(part || 0)) : []
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export function compatible(probe, minimum) {
|
|
7
|
-
if (!probe.available) return { ...probe, detected: false, minimum }
|
|
8
|
-
const actual = versionParts(probe.output)
|
|
9
|
-
const wanted = versionParts(minimum)
|
|
10
|
-
for (let index = 0; index < wanted.length; index += 1) {
|
|
11
|
-
if ((actual[index] ?? 0) > wanted[index]) return { ...probe, detected: true, available: true, minimum }
|
|
12
|
-
if ((actual[index] ?? 0) < wanted[index]) return { ...probe, detected: true, available: false, minimum }
|
|
13
|
-
}
|
|
14
|
-
return { ...probe, detected: true, available: true, minimum }
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export function compatibleNode(version) {
|
|
18
|
-
const [major] = String(version).split('.').map(Number)
|
|
19
|
-
return major >= 24
|
|
20
|
-
}
|
|
1
|
+
export function versionParts(text) {
|
|
2
|
+
const match = String(text).match(/(\d+)(?:\.(\d+))?(?:\.(\d+))?/)
|
|
3
|
+
return match ? match.slice(1).map((part) => Number(part || 0)) : []
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export function compatible(probe, minimum) {
|
|
7
|
+
if (!probe.available) return { ...probe, detected: false, minimum }
|
|
8
|
+
const actual = versionParts(probe.output)
|
|
9
|
+
const wanted = versionParts(minimum)
|
|
10
|
+
for (let index = 0; index < wanted.length; index += 1) {
|
|
11
|
+
if ((actual[index] ?? 0) > wanted[index]) return { ...probe, detected: true, available: true, minimum }
|
|
12
|
+
if ((actual[index] ?? 0) < wanted[index]) return { ...probe, detected: true, available: false, minimum }
|
|
13
|
+
}
|
|
14
|
+
return { ...probe, detected: true, available: true, minimum }
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export function compatibleNode(version) {
|
|
18
|
+
const [major] = String(version).split('.').map(Number)
|
|
19
|
+
return major >= 24
|
|
20
|
+
}
|
package/lib/viewer-preview.js
CHANGED
|
@@ -1,27 +1,44 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
if (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
1
|
+
import { randomUUID } from 'node:crypto'
|
|
2
|
+
import { previewPayload, safeRuntimeUrl } from './query-tool.js'
|
|
3
|
+
|
|
4
|
+
const identifier = /^[A-Za-z0-9_.-]{1,128}$/
|
|
5
|
+
|
|
6
|
+
/** Call the existing MCP connector through Harness's tool policy pipeline.
|
|
7
|
+
* Its transport owns Authorization and X-NS; no credential enters the remote UI contract.
|
|
8
|
+
*/
|
|
9
|
+
export async function createViewerPreview({ model, namespace, payload }, tools, managedRuntime = null) {
|
|
10
|
+
if (!identifier.test(model) || !identifier.test(namespace)) throw new Error('Invalid model or namespace')
|
|
11
|
+
const matches = tools.schemas().filter(tool => /^mcp__.+__dataset_open_in_viewer(?:_[a-f0-9]+)?$/.test(tool.name))
|
|
12
|
+
if (matches.length !== 1) throw new Error('Configure exactly one Foggy MCP connector with dataset.open_in_viewer')
|
|
13
|
+
const outcome = await tools.execute({
|
|
14
|
+
callId: randomUUID(), name: matches[0].name,
|
|
15
|
+
arguments: { model, namespace, title: `${model} · Harness preview`, payload: previewPayload(payload) },
|
|
16
|
+
signal: AbortSignal.timeout(30_000),
|
|
17
|
+
})
|
|
18
|
+
if (outcome.isError || !outcome.value) throw new Error('The authorized MCP viewer tool rejected this query')
|
|
19
|
+
const value = outcome.value
|
|
20
|
+
let result = value.structuredContent
|
|
21
|
+
if (!result) {
|
|
22
|
+
try { result = JSON.parse(value.content?.find(item => item.type === 'text')?.text || '') }
|
|
23
|
+
catch { throw new Error('MCP viewer tool did not return a link') }
|
|
24
|
+
}
|
|
25
|
+
result = result?.data || result
|
|
26
|
+
if (typeof result.viewerUrl !== 'string') throw new Error('MCP viewer tool did not return a link')
|
|
27
|
+
const url = new URL(result.viewerUrl)
|
|
28
|
+
safeRuntimeUrl(url.origin)
|
|
29
|
+
if (url.username || url.password || url.search) throw new Error('MCP returned an unexpected viewer URL')
|
|
30
|
+
if (url.pathname === '/data-viewer/open' && /^#[A-Za-z0-9_-]{43}$/.test(url.hash)) {
|
|
31
|
+
return { success: true, url: url.href, queryId: result.queryId, authorizationMode: 'service' }
|
|
32
|
+
}
|
|
33
|
+
// The lite launcher's public development viewer uses an opaque query ID. It
|
|
34
|
+
// does not carry service Authorization. Never accept that route for another
|
|
35
|
+
// service or a protected host, and never request an anonymous fallback link.
|
|
36
|
+
const local = managedRuntime?.securityMode === 'none-dev-test-only'
|
|
37
|
+
? new URL(safeRuntimeUrl(managedRuntime.runtimeUrl)) : null
|
|
38
|
+
if (local && local.port === url.port && !url.hash
|
|
39
|
+
&& typeof result.queryId === 'string' && /^[a-f0-9]{32}$/i.test(result.queryId)
|
|
40
|
+
&& url.pathname === `/data-viewer/view/${encodeURIComponent(model)}/${result.queryId}`) {
|
|
41
|
+
return { success: true, url: url.href, queryId: result.queryId, authorizationMode: 'local-development' }
|
|
42
|
+
}
|
|
43
|
+
throw new Error('MCP returned an unsupported viewer link. Protected services require a grant-authorized preview; local development links must match the running managed Runtime.')
|
|
44
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foggy-projects/deepseek-harness-plugin",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4-rc.1",
|
|
4
4
|
"description": "Foggy Java data analysis engine integration for DeepSeek Harness",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deepseek-harness",
|
|
@@ -42,15 +42,20 @@
|
|
|
42
42
|
"docs/RELEASE-CANDIDATE-0.4.1-DSH-0.1.5-RC.1.md",
|
|
43
43
|
"docs/RELEASE-CANDIDATE-0.4.2-DSH-0.1.7-RC.2.md",
|
|
44
44
|
"docs/RELEASE-CANDIDATE-0.4.2-DSH-0.1.7-RC.3.md",
|
|
45
|
+
"docs/RELEASE-CANDIDATE-0.4.2-DSH-0.1.7-RC.4.md",
|
|
46
|
+
"docs/RELEASE-CANDIDATE-0.4.2-DSH-0.1.7-RC.5.md",
|
|
45
47
|
"docs/RELEASE-CANDIDATE-0.4.2-DSH-0.1.7-RC.1.md",
|
|
46
48
|
"docs/COMMUNITY-MARKETPLACES.md",
|
|
47
49
|
"docs/WINDOWS-BETA-ACCEPTANCE.md",
|
|
48
50
|
"THIRD-PARTY-RUNTIME-NOTICES.md",
|
|
49
|
-
"README.md"
|
|
51
|
+
"README.md",
|
|
52
|
+
"docs/RELEASE-CANDIDATE-0.4.3-DSH-0.2.0-RC.1.md",
|
|
53
|
+
"docs/RELEASE-CANDIDATE-0.4.4-DSH-0.2.1-RC.1.md"
|
|
50
54
|
],
|
|
51
55
|
"license": "Apache-2.0",
|
|
52
56
|
"engines": {
|
|
53
|
-
"node": ">=24.0.0"
|
|
57
|
+
"node": ">=24.0.0",
|
|
58
|
+
"dsh": "^0.2.1-rc.2"
|
|
54
59
|
},
|
|
55
60
|
"dsh": {
|
|
56
61
|
"bundle": {
|
|
@@ -63,26 +68,31 @@
|
|
|
63
68
|
"@deepseek-ai/dsh-client-locale",
|
|
64
69
|
"@deepseek-ai/dsh-client-ui-settings",
|
|
65
70
|
"@deepseek-ai/dsh-client-ui-settings-plugins",
|
|
66
|
-
"@deepseek-ai/dsh-client-ui-tool"
|
|
71
|
+
"@deepseek-ai/dsh-client-ui-tool",
|
|
72
|
+
"@deepseek-ai/dsh-client-ui-conversation",
|
|
73
|
+
"@deepseek-ai/dsh-client-ui-chat",
|
|
74
|
+
"@deepseek-ai/dsh-api-session-controller"
|
|
67
75
|
]
|
|
68
76
|
}
|
|
69
77
|
},
|
|
70
78
|
"dependencies": {
|
|
71
|
-
"@deepseek-ai/dsh-tools": "0.1.7-rc.2",
|
|
72
79
|
"zod": "^4.4.3"
|
|
73
80
|
},
|
|
74
81
|
"peerDependencies": {
|
|
75
|
-
"@deepseek-ai/cordis": "^4.0.
|
|
76
|
-
"@deepseek-ai/dsh-api-remotes": "^0.1
|
|
77
|
-
"@deepseek-ai/dsh-client-locale": "^0.1
|
|
78
|
-
"@deepseek-ai/dsh-client-ui-settings": "^0.1
|
|
79
|
-
"@deepseek-ai/dsh-client-ui-settings-plugins": "^0.1
|
|
80
|
-
"@deepseek-ai/dsh-client-ui-tool": "^0.1
|
|
81
|
-
"@deepseek-ai/dsh-
|
|
82
|
-
"@deepseek-ai/dsh-
|
|
82
|
+
"@deepseek-ai/cordis": "^4.0.5",
|
|
83
|
+
"@deepseek-ai/dsh-api-remotes": "^0.2.1-rc.2",
|
|
84
|
+
"@deepseek-ai/dsh-client-locale": "^0.2.1-rc.2",
|
|
85
|
+
"@deepseek-ai/dsh-client-ui-settings": "^0.2.1-rc.2",
|
|
86
|
+
"@deepseek-ai/dsh-client-ui-settings-plugins": "^0.2.1-rc.2",
|
|
87
|
+
"@deepseek-ai/dsh-client-ui-tool": "^0.2.1-rc.2",
|
|
88
|
+
"@deepseek-ai/dsh-client-ui-conversation": "^0.2.1-rc.2",
|
|
89
|
+
"@deepseek-ai/dsh-client-ui-chat": "^0.2.1-rc.2",
|
|
90
|
+
"@deepseek-ai/dsh-api-session-controller": "^0.2.1-rc.2",
|
|
91
|
+
"@deepseek-ai/dsh-skill": "^0.2.1-rc.2",
|
|
92
|
+
"@deepseek-ai/dsh-typert-protocol": "^0.2.1-rc.2"
|
|
83
93
|
},
|
|
84
94
|
"scripts": {
|
|
85
|
-
"check": "node --check lib/index.js && node --check lib/query-tool.js && node --check lib/viewer-preview.js && node --check lib/atomic-json.js && node --check lib/diagnostics.js && node --check lib/python-runtime.js && node --check lib/runtime-settings.js && node --check lib/skill-provider.js && node --check lib/client.js && node --check lib/typert.js && node --check lib/remote.js",
|
|
86
|
-
"test": "node --test test/package.test.js test/viewer-preview.test.js && node test/run-onboarding-tests.js"
|
|
95
|
+
"check": "node --check lib/index.js && node --check lib/component-releases.js && node --check lib/component-manager.js && node --check lib/operation-lock.js && node --check lib/query-tool.js && node --check lib/viewer-preview.js && node --check lib/atomic-json.js && node --check lib/diagnostics.js && node --check lib/python-runtime.js && node --check lib/runtime-settings.js && node --check lib/skill-provider.js && node --check lib/client.js && node --check lib/typert.js && node --check lib/remote.js",
|
|
96
|
+
"test": "node --test test/package.test.js test/viewer-preview.test.js test/viewer-ui.test.js test/harness-compatibility.test.js test/component-releases.test.js test/component-manager.test.js test/operation-lock.test.js test/component-version-ui.test.js && node test/run-onboarding-tests.js"
|
|
87
97
|
}
|
|
88
98
|
}
|