archgraph-argo-beta 0.27.0-beta.7 → 0.27.0-beta.9
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 +17 -0
- package/argo/scripts/schema-bundle.js +56 -8
- package/cordis.patch.yml +9 -0
- package/dsh-argo-workspace/index.js +100 -30
- package/install-argo.ps1 +26 -17
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -88,6 +88,23 @@ After installing, open your project and start a coding agent. It will:
|
|
|
88
88
|
|
|
89
89
|
The intent architecture graph — modelled in **ArchiMate 3.2** — is the single source of truth.
|
|
90
90
|
|
|
91
|
+
## The federation model
|
|
92
|
+
|
|
93
|
+
ArchGraph is a **federated intent graph**, not one big distributed graph. Every project owns a
|
|
94
|
+
complete, **sovereign** canonical graph (`design/KG/SystemArchitecture.json`) and stays the single
|
|
95
|
+
source of truth for its own model — nothing is split, sharded, or merged into a central super-graph.
|
|
96
|
+
|
|
97
|
+
Projects **co-build** by federation: a member **self-registers** with the federation center, others
|
|
98
|
+
**discover** it, reads are **explicitly authorized and denied by default**, and a cross-project read
|
|
99
|
+
returns a **reference, not a copy**. The center holds only federation metadata — membership,
|
|
100
|
+
capabilities, interfaces, grants — plus a read-only mirror: it is a **registry + broker**, never the
|
|
101
|
+
content.
|
|
102
|
+
|
|
103
|
+
The pattern is **Registry–Broker Federation over sovereign knowledge graphs**: self-registration +
|
|
104
|
+
discovery + capability-based authorization + reference-not-copy, mediated by a broker. It is
|
|
105
|
+
*federated*, not "distributed" — a distributed model would mean one logical graph partitioned across
|
|
106
|
+
nodes, which is exactly what this design avoids.
|
|
107
|
+
|
|
91
108
|
## Community
|
|
92
109
|
|
|
93
110
|
ArchGraph runs on open co-building. Join the community hub to share, browse and reuse **architecture
|
|
@@ -197,19 +197,67 @@ function bundleSymbolicNames(dir) {
|
|
|
197
197
|
return names;
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
-
function
|
|
200
|
+
function isPathLikeExt(value) {
|
|
201
|
+
return value.includes('/') || value.includes('\\') || value.startsWith('.') || value.startsWith('~')
|
|
202
|
+
|| /^[a-zA-Z]:/.test(value);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
// Bounded, general candidate list for symbolic bundle resolution: the built-in
|
|
206
|
+
// default bundle, any directory a bundle lists in its own `basePaths`, the bundle's
|
|
207
|
+
// own directory, and its immediate sub-directories. The framework matches a name
|
|
208
|
+
// against each candidate's SELF-DECLARED id/aliases (data) — it hardcodes no
|
|
209
|
+
// modeling-language name. A non-matching symbolic name falls back to a path, so
|
|
210
|
+
// bare relative directory references keep working.
|
|
211
|
+
function candidateBaseDirs(childDir, config) {
|
|
212
|
+
const dirs = [];
|
|
213
|
+
const seen = new Set();
|
|
214
|
+
const push = (dir) => {
|
|
215
|
+
if (!dir) {
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
218
|
+
const resolved = path.resolve(dir);
|
|
219
|
+
const key = resolved.toLowerCase();
|
|
220
|
+
if (!seen.has(key)) {
|
|
221
|
+
seen.add(key);
|
|
222
|
+
dirs.push(resolved);
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
push(path.join(getArgoRoot(), 'schema'));
|
|
226
|
+
const basePaths = config && Array.isArray(config.basePaths) ? config.basePaths : [];
|
|
227
|
+
for (const basePath of basePaths) {
|
|
228
|
+
if (typeof basePath === 'string' && basePath.trim() !== '') {
|
|
229
|
+
push(path.resolve(childDir, basePath.trim()));
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
push(childDir);
|
|
233
|
+
let entries = [];
|
|
234
|
+
try {
|
|
235
|
+
entries = fs.readdirSync(childDir, { withFileTypes: true });
|
|
236
|
+
} catch {
|
|
237
|
+
entries = [];
|
|
238
|
+
}
|
|
239
|
+
for (const entry of entries) {
|
|
240
|
+
if (entry.isDirectory()) {
|
|
241
|
+
push(path.join(childDir, entry.name));
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
return dirs;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
function resolveBaseBundleDir(ext, childDir, config) {
|
|
201
248
|
const value = String(ext).trim();
|
|
202
249
|
// `default` is the reserved, language-neutral name of the built-in bundle.
|
|
203
250
|
if (value === 'default') {
|
|
204
251
|
return path.join(getArgoRoot(), 'schema');
|
|
205
252
|
}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
253
|
+
if (!isPathLikeExt(value)) {
|
|
254
|
+
for (const dir of candidateBaseDirs(childDir, config)) {
|
|
255
|
+
if (bundleSymbolicNames(dir).has(value)) {
|
|
256
|
+
return dir;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
212
259
|
}
|
|
260
|
+
// Not a symbolic hit: treat as a path relative to the bundle directory.
|
|
213
261
|
return path.resolve(childDir, value);
|
|
214
262
|
}
|
|
215
263
|
|
|
@@ -350,7 +398,7 @@ function applyExtends(bundle, workspaceRoot, seen = new Set()) {
|
|
|
350
398
|
return bundle;
|
|
351
399
|
}
|
|
352
400
|
seen.add(path.resolve(bundle.dir).toLowerCase());
|
|
353
|
-
const baseDir = resolveBaseBundleDir(ext, bundle.dir);
|
|
401
|
+
const baseDir = resolveBaseBundleDir(ext, bundle.dir, bundle.config);
|
|
354
402
|
const baseKey = path.resolve(baseDir).toLowerCase();
|
|
355
403
|
if (seen.has(baseKey)) {
|
|
356
404
|
throw new Error(`schema bundle extends cycle detected at '${baseDir}'`);
|
package/cordis.patch.yml
CHANGED
|
@@ -2,5 +2,14 @@
|
|
|
2
2
|
- insert:
|
|
3
3
|
- id: argo-workspace
|
|
4
4
|
name: archgraph-argo/dsh-argo-workspace
|
|
5
|
+
config:
|
|
6
|
+
servers:
|
|
7
|
+
- id: argo
|
|
8
|
+
injectWorkspaceRoot: true
|
|
9
|
+
- id: graph-mcp
|
|
10
|
+
serverPath: '../argo/mcp-bridges/graph-mcp-stdio.js'
|
|
11
|
+
env:
|
|
12
|
+
GRAPH_MCP_URL: https://argo.derekworkspacev5.com/mcp
|
|
13
|
+
injectWorkspaceRoot: false
|
|
5
14
|
- id: argo-wakeup
|
|
6
15
|
name: archgraph-argo/dsh-argo-wakeup
|
|
@@ -2,12 +2,17 @@
|
|
|
2
2
|
// install-argo.ps1 copies this file verbatim into ~/.dsh/plugins, so the
|
|
3
3
|
// deployed plugin and this shipped bundle artifact are byte-identical.
|
|
4
4
|
//
|
|
5
|
-
// Direct MCP bridge
|
|
6
|
-
//
|
|
7
|
-
// directory (SessionHeader.cwd) as the per-call
|
|
8
|
-
// one dsh instance follows whichever workspace the
|
|
9
|
-
// model sees no extra parameters and no internal tool
|
|
10
|
-
// honors the injected workspaceRoot unconditionally.
|
|
5
|
+
// Direct MCP stdio bridge(es) for DeepSeek Harness. Registers every tool of each
|
|
6
|
+
// configured MCP server as mcp__<id>__* and, for the argo server, injects the
|
|
7
|
+
// current session's workspace directory (SessionHeader.cwd) as the per-call
|
|
8
|
+
// `workspaceRoot` argument, so one dsh instance follows whichever workspace the
|
|
9
|
+
// user switched to - the model sees no extra parameters and no internal tool
|
|
10
|
+
// names. The argo server honors the injected workspaceRoot unconditionally.
|
|
11
|
+
//
|
|
12
|
+
// Multiple servers are supported so a host that can only spawn local stdio
|
|
13
|
+
// children (DSH) can still mount the remote federation Graph MCP through the
|
|
14
|
+
// stdio bridge (GRAPH_MCP_URL). Configure via `config.servers` (a list); the
|
|
15
|
+
// legacy single-server shape (`config.serverPath`) is still honored.
|
|
11
16
|
//
|
|
12
17
|
// Zero dependencies on purpose: implements the minimal MCP stdio client
|
|
13
18
|
// (JSON-RPC 2.0, one JSON object per line) with Node built-ins only, so the
|
|
@@ -24,9 +29,70 @@ const DEFAULT_SERVER_PATH = fileURLToPath(
|
|
|
24
29
|
new URL('../argo/scripts/argo-mcp-server.js', import.meta.url),
|
|
25
30
|
)
|
|
26
31
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
32
|
+
// A `serverPath`/`args` entry that starts with ./ or ../ resolves relative to this
|
|
33
|
+
// plugin module (portable bundle references); an absolute path is used as-is.
|
|
34
|
+
function resolveMaybeRelative(value) {
|
|
35
|
+
if (typeof value === 'string' && /^[.][\\/]/.test(value)) {
|
|
36
|
+
try {
|
|
37
|
+
return fileURLToPath(new URL(value, import.meta.url))
|
|
38
|
+
} catch {
|
|
39
|
+
return value
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return value
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/** Normalize config into a list of server specs (backward compatible). */
|
|
46
|
+
function normalizeServerSpecs(config) {
|
|
47
|
+
const topWorkspaces = Array.isArray(config.workspaces) ? config.workspaces : []
|
|
48
|
+
const withCommon = (spec) => {
|
|
49
|
+
const env = { ...process.env, ...(spec.env || {}) }
|
|
50
|
+
if (spec.injectWorkspaceRoot && topWorkspaces.length > 0) {
|
|
51
|
+
env.ARGO_WORKSPACE_ROOTS = topWorkspaces.join(';')
|
|
52
|
+
}
|
|
53
|
+
return { ...spec, env, cwd: spec.cwd ?? (spec.injectWorkspaceRoot ? config.cwd : undefined) }
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
if (Array.isArray(config.servers) && config.servers.length > 0) {
|
|
57
|
+
return config.servers.map((server) => {
|
|
58
|
+
const id = typeof server.id === 'string' && server.id !== '' ? server.id : 'server'
|
|
59
|
+
const injectWorkspaceRoot = server.injectWorkspaceRoot !== undefined
|
|
60
|
+
? server.injectWorkspaceRoot === true
|
|
61
|
+
: id === 'argo'
|
|
62
|
+
const serverPath = resolveMaybeRelative(server.serverPath)
|
|
63
|
+
?? (id === 'argo' ? DEFAULT_SERVER_PATH : undefined)
|
|
64
|
+
const args = Array.isArray(server.args)
|
|
65
|
+
? server.args.map(resolveMaybeRelative)
|
|
66
|
+
: (serverPath ? [serverPath] : [])
|
|
67
|
+
return withCommon({
|
|
68
|
+
id,
|
|
69
|
+
// mcp__<id>__ prefix mirrors the host's server-name convention.
|
|
70
|
+
prefix: typeof server.prefix === 'string' && server.prefix !== '' ? server.prefix : 'mcp__' + id + '__',
|
|
71
|
+
command: typeof server.command === 'string' && server.command !== '' ? server.command : 'node',
|
|
72
|
+
args,
|
|
73
|
+
env: server.env && typeof server.env === 'object' ? server.env : {},
|
|
74
|
+
cwd: server.cwd,
|
|
75
|
+
injectWorkspaceRoot,
|
|
76
|
+
})
|
|
77
|
+
})
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// Legacy single-server shape: the argo workspace bridge.
|
|
81
|
+
const serverPath = config.serverPath ?? process.env.ARGO_SERVER_PATH ?? DEFAULT_SERVER_PATH
|
|
82
|
+
return [withCommon({
|
|
83
|
+
id: 'argo',
|
|
84
|
+
prefix: 'mcp__argo__',
|
|
85
|
+
command: 'node',
|
|
86
|
+
args: [serverPath],
|
|
87
|
+
env: {},
|
|
88
|
+
cwd: config.cwd,
|
|
89
|
+
injectWorkspaceRoot: true,
|
|
90
|
+
})]
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/** Minimal MCP stdio client over one spawned server process. */
|
|
94
|
+
function createStdioClient(command, args, env, cwd) {
|
|
95
|
+
const child = spawn(command, args, {
|
|
30
96
|
stdio: ['pipe', 'pipe', 'pipe'],
|
|
31
97
|
env,
|
|
32
98
|
...(cwd ? { cwd } : {}),
|
|
@@ -43,7 +109,7 @@ function createArgoClient(serverPath, env, cwd) {
|
|
|
43
109
|
else resolve(message.result)
|
|
44
110
|
}
|
|
45
111
|
})
|
|
46
|
-
child.stderr.on('data', () => {}) // drain; the
|
|
112
|
+
child.stderr.on('data', () => {}) // drain; the server logs to stderr
|
|
47
113
|
const request = (method, params) => new Promise((resolve, reject) => {
|
|
48
114
|
const id = nextId++
|
|
49
115
|
pending.set(id, { resolve, reject })
|
|
@@ -58,16 +124,10 @@ function createArgoClient(serverPath, env, cwd) {
|
|
|
58
124
|
}
|
|
59
125
|
}
|
|
60
126
|
|
|
61
|
-
/** Connect, list tools, register them
|
|
62
|
-
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
?? DEFAULT_SERVER_PATH
|
|
66
|
-
const workspaces = Array.isArray(config.workspaces) ? config.workspaces : []
|
|
67
|
-
const env = { ...process.env }
|
|
68
|
-
if (workspaces.length > 0) env.ARGO_WORKSPACE_ROOTS = workspaces.join(';')
|
|
69
|
-
const client = createArgoClient(serverPath, env, config.cwd)
|
|
70
|
-
ctx.effect(() => () => client.close(), 'dsh-argo-workspace.dispose()')
|
|
127
|
+
/** Connect one server, list its tools, and register them under its prefix. */
|
|
128
|
+
async function mountServer(ctx, spec, registered) {
|
|
129
|
+
const client = createStdioClient(spec.command, spec.args, spec.env, spec.cwd)
|
|
130
|
+
ctx.effect(() => () => client.close(), `dsh-argo-workspace.dispose(${spec.id})`)
|
|
71
131
|
|
|
72
132
|
let tools = []
|
|
73
133
|
try {
|
|
@@ -80,14 +140,13 @@ export async function apply(ctx, config) {
|
|
|
80
140
|
const listed = await client.request('tools/list', {})
|
|
81
141
|
tools = (listed && Array.isArray(listed.tools)) ? listed.tools : []
|
|
82
142
|
} catch (error) {
|
|
83
|
-
console.warn(`[dsh-argo-workspace] failed to connect to
|
|
143
|
+
console.warn(`[dsh-argo-workspace] failed to connect to '${spec.id}' (${spec.args.join(' ')}): ${error && error.message ? error.message : error}`)
|
|
84
144
|
return
|
|
85
145
|
}
|
|
86
146
|
|
|
87
|
-
const disposers = []
|
|
88
147
|
for (const tool of tools) {
|
|
89
|
-
const publicName =
|
|
90
|
-
|
|
148
|
+
const publicName = spec.prefix + tool.name
|
|
149
|
+
registered.push(ctx.tools.register({
|
|
91
150
|
name: publicName,
|
|
92
151
|
description: tool.description ?? '',
|
|
93
152
|
parameters: tool.inputSchema,
|
|
@@ -107,12 +166,14 @@ export async function apply(ctx, config) {
|
|
|
107
166
|
// SessionHeader.cwd (the durable session workspace), NOT
|
|
108
167
|
// requestHeader() — that returns the request EpochHeader
|
|
109
168
|
// (config/system/tools) which has no cwd field.
|
|
110
|
-
const sessionCwd = exec && exec.agent && exec.agent.session
|
|
111
|
-
? exec.agent.session.header?.cwd
|
|
112
|
-
: undefined
|
|
113
169
|
const injected = { ...(args && typeof args === 'object' ? args : {}) }
|
|
114
|
-
if (
|
|
115
|
-
|
|
170
|
+
if (spec.injectWorkspaceRoot) {
|
|
171
|
+
const sessionCwd = exec && exec.agent && exec.agent.session
|
|
172
|
+
? exec.agent.session.header?.cwd
|
|
173
|
+
: undefined
|
|
174
|
+
if (typeof sessionCwd === 'string' && sessionCwd !== '') {
|
|
175
|
+
injected.workspaceRoot = sessionCwd
|
|
176
|
+
}
|
|
116
177
|
}
|
|
117
178
|
if (exec && exec.signal && exec.signal.aborted) {
|
|
118
179
|
throw new Error('aborted')
|
|
@@ -136,7 +197,16 @@ export async function apply(ctx, config) {
|
|
|
136
197
|
},
|
|
137
198
|
}))
|
|
138
199
|
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/** Connect every configured server, register its tools, keep clients until disposal. */
|
|
203
|
+
export async function apply(ctx, config) {
|
|
204
|
+
const specs = normalizeServerSpecs(config || {})
|
|
205
|
+
const registered = []
|
|
206
|
+
for (const spec of specs) {
|
|
207
|
+
await mountServer(ctx, spec, registered)
|
|
208
|
+
}
|
|
139
209
|
ctx.effect(() => () => {
|
|
140
|
-
for (const dispose of
|
|
210
|
+
for (const dispose of registered) dispose()
|
|
141
211
|
}, 'dsh-argo-workspace.tools')
|
|
142
212
|
}
|
package/install-argo.ps1
CHANGED
|
@@ -776,9 +776,9 @@ Write-Host "[4/22] argo\skills\argo-init -> $skillDest"
|
|
|
776
776
|
Copy-Tree -Source $skillSrc -Destination $skillDest
|
|
777
777
|
$reconcileSkillSrc = Join-Path (Join-Path $argoDir 'skills') 'ea-human-reconcile'
|
|
778
778
|
$diagSkillSrc = Join-Path (Join-Path $argoDir 'skills') 'agent-search-diagnosis'
|
|
779
|
-
Write-Host
|
|
779
|
+
Write-Host " argo\skills\ea-human-reconcile -> $SkillsRoot\ea-human-reconcile (EA human draft reconcile skill)"
|
|
780
780
|
Copy-Tree -Source $reconcileSkillSrc -Destination (Join-Path $SkillsRoot 'ea-human-reconcile')
|
|
781
|
-
Write-Host
|
|
781
|
+
Write-Host " argo\skills\agent-search-diagnosis -> $SkillsRoot\agent-search-diagnosis (agent search diagnosis skill)"
|
|
782
782
|
Copy-Tree -Source $diagSkillSrc -Destination (Join-Path $SkillsRoot 'agent-search-diagnosis')
|
|
783
783
|
|
|
784
784
|
$ruleSrc = Join-Path (Join-Path $argoDir 'rules') 'archgraph.instructions.md'
|
|
@@ -795,9 +795,9 @@ Copy-Item -Force -Path $depsSrc -Destination $depsDest
|
|
|
795
795
|
$cursorSkillDest = Join-Path $CursorSkillsRoot 'argo-init'
|
|
796
796
|
Write-Host "[7/22] argo\skills\argo-init -> $cursorSkillDest (Cursor)"
|
|
797
797
|
Copy-Tree -Source $skillSrc -Destination $cursorSkillDest
|
|
798
|
-
Write-Host
|
|
798
|
+
Write-Host " argo\skills\ea-human-reconcile -> $CursorSkillsRoot\ea-human-reconcile (Cursor)"
|
|
799
799
|
Copy-Tree -Source $reconcileSkillSrc -Destination (Join-Path $CursorSkillsRoot 'ea-human-reconcile')
|
|
800
|
-
Write-Host
|
|
800
|
+
Write-Host " argo\skills\agent-search-diagnosis -> $CursorSkillsRoot\agent-search-diagnosis (Cursor)"
|
|
801
801
|
Copy-Tree -Source $diagSkillSrc -Destination (Join-Path $CursorSkillsRoot 'agent-search-diagnosis')
|
|
802
802
|
|
|
803
803
|
$mcpBridgeSrc = Join-Path $argoDir 'mcp-bridges'
|
|
@@ -808,9 +808,9 @@ Copy-Tree -Source $mcpBridgeSrc -Destination $mcpBridgeDest
|
|
|
808
808
|
$openCodeSkillDest = Join-Path $OpenCodeSkillsRoot 'argo-init'
|
|
809
809
|
Write-Host "[8/22] argo\skills\argo-init -> $openCodeSkillDest (OpenCode)"
|
|
810
810
|
Copy-Tree -Source $skillSrc -Destination $openCodeSkillDest
|
|
811
|
-
Write-Host
|
|
811
|
+
Write-Host " argo\skills\ea-human-reconcile -> $OpenCodeSkillsRoot\ea-human-reconcile (OpenCode)"
|
|
812
812
|
Copy-Tree -Source $reconcileSkillSrc -Destination (Join-Path $OpenCodeSkillsRoot 'ea-human-reconcile')
|
|
813
|
-
Write-Host
|
|
813
|
+
Write-Host " argo\skills\agent-search-diagnosis -> $OpenCodeSkillsRoot\agent-search-diagnosis (OpenCode)"
|
|
814
814
|
Copy-Tree -Source $diagSkillSrc -Destination (Join-Path $OpenCodeSkillsRoot 'agent-search-diagnosis')
|
|
815
815
|
|
|
816
816
|
Write-Host "[9/22] argo\rules\archgraph.instructions.md -> $OpenCodeAgentsPath (OpenCode global AGENTS.md)"
|
|
@@ -849,15 +849,15 @@ if ($SkipDsh) {
|
|
|
849
849
|
|
|
850
850
|
Write-Host "[16/22] argo\skills\argo-init -> $dshSkillDest (DeepSeek Harness skill)"
|
|
851
851
|
Copy-Tree -Source (Join-Path $argoDir 'skills\argo-init') -Destination $dshSkillDest
|
|
852
|
-
Write-Host
|
|
852
|
+
Write-Host " argo\skills\ea-human-reconcile -> $DshHome\skills\ea-human-reconcile (DeepSeek Harness skill)"
|
|
853
853
|
Copy-Tree -Source (Join-Path $argoDir 'skills\ea-human-reconcile') -Destination (Join-Path (Join-Path $DshHome 'skills') 'ea-human-reconcile')
|
|
854
|
-
Write-Host
|
|
854
|
+
Write-Host " argo\skills\agent-search-diagnosis -> $DshHome\skills\agent-search-diagnosis (DeepSeek Harness skill)"
|
|
855
855
|
Copy-Tree -Source $diagSkillSrc -Destination (Join-Path (Join-Path $DshHome 'skills') 'agent-search-diagnosis')
|
|
856
856
|
|
|
857
857
|
Write-Host "[17/22] dsh-argo-wakeup\index.js (single source; gate from argo\rules\archgraph.instructions.md <WakeupGuideline>) -> $DshHome\plugins\dsh-argo-wakeup\index.js (DeepSeek Harness wakeup plugin)"
|
|
858
858
|
$wakeupDshPath = New-DshWakeupPlugin -DshHome $DshHome
|
|
859
859
|
|
|
860
|
-
Write-Host "[18/22] argo-workspace + argo-wakeup rows -> $patchPath (DeepSeek Harness MCP
|
|
860
|
+
Write-Host "[18/22] argo-workspace (argo + graph-mcp) + argo-wakeup rows -> $patchPath (DeepSeek Harness MCP bridges + wakeup plugin)"
|
|
861
861
|
# The generated dsh-argo-workspace bridge connects directly to the argo
|
|
862
862
|
# server (no dsh-mcp-client row), registers every tool as mcp__argo__* and
|
|
863
863
|
# injects the current session's workspace (SessionHeader.cwd) as the
|
|
@@ -865,9 +865,20 @@ if ($SkipDsh) {
|
|
|
865
865
|
# user switched to. The server honors the injected workspaceRoot
|
|
866
866
|
# unconditionally.
|
|
867
867
|
$bridgeDshPath = New-DshWorkspaceBridge -DshHome $DshHome
|
|
868
|
+
# Deploy the federation Graph MCP stdio bridge next to the DSH plugins, so the
|
|
869
|
+
# remote graph-mcp (registry_*/mirror_*/graph_*) mounts as an ordinary local
|
|
870
|
+
# stdio server - the same bridge Cursor/Doubao already use.
|
|
871
|
+
$dshBridgeDir = Join-Path $DshHome 'mcp-bridges'
|
|
872
|
+
Copy-Tree -Source (Join-Path $argoDir 'mcp-bridges') -Destination $dshBridgeDir
|
|
873
|
+
$dshGraphBridgePath = (Join-Path $dshBridgeDir 'graph-mcp-stdio.js').Replace('\', '/')
|
|
868
874
|
if ($bridgeDshPath) {
|
|
869
875
|
$bridgeUrl = 'file:///' + (($bridgeDshPath -replace '\\', '/').TrimStart('/'))
|
|
870
|
-
|
|
876
|
+
# One bridge plugin mounts every server; the argo server follows the session
|
|
877
|
+
# workspace (workspaceRoot), graph-mcp does not inject workspaceRoot.
|
|
878
|
+
$serversYaml = " servers:`n"
|
|
879
|
+
$serversYaml += " - id: argo`n serverPath: '$argoServer'`n injectWorkspaceRoot: true`n"
|
|
880
|
+
$serversYaml += " - id: graph-mcp`n command: node`n args:`n - '$dshGraphBridgePath'`n env:`n GRAPH_MCP_URL: '$GraphMcpUrl'`n injectWorkspaceRoot: false`n"
|
|
881
|
+
$bridgeConfig = " config:`n" + $serversYaml
|
|
871
882
|
if ($DshWorkspaces) {
|
|
872
883
|
$wsList = @($DshWorkspaces.Replace('\', '/').Split(';') | ForEach-Object { " - $_" }) -join "`n"
|
|
873
884
|
$bridgeConfig += " workspaces:`n" + $wsList + "`n"
|
|
@@ -891,10 +902,8 @@ if ($SkipDsh) {
|
|
|
891
902
|
Write-Host "[19/22] argo\agents -> $DshHome\.agent-presets\<id> (DeepSeek Harness agent presets)"
|
|
892
903
|
New-DshAgentPresets -DshHome $DshHome -AgentsSrc (Join-Path $argoDir 'agents')
|
|
893
904
|
|
|
894
|
-
Write-Host "
|
|
895
|
-
Write-Host "
|
|
896
|
-
Write-Host " the local argo server); an HTTP remote MCP server has no equivalent cordis row here."
|
|
897
|
-
Write-Host " Restart `dsh web` to activate the MCP bridge and the wakeup plugin;"
|
|
905
|
+
Write-Host " graph-mcp registered for DeepSeek Harness as a stdio bridge -> $dshGraphBridgePath (GRAPH_MCP_URL=$GraphMcpUrl)"
|
|
906
|
+
Write-Host " Restart `dsh web` to activate the MCP bridges and the wakeup plugin;"
|
|
898
907
|
Write-Host ' new sessions pick up the global rule and the argo-init skill automatically.'
|
|
899
908
|
Write-Host ' The argo tools (mcp__argo__*) auto-follow the workspace the user switched to'
|
|
900
909
|
Write-Host ' in one dsh instance - no restart needed between workspaces (the server honors'
|
|
@@ -914,10 +923,10 @@ if ($SkipOpenClaw) {
|
|
|
914
923
|
|
|
915
924
|
Write-Host "[21/22] argo\skills\argo-init -> $openClawSkillDest (OpenClaw managed skill, all agents)"
|
|
916
925
|
Copy-Tree -Source (Join-Path $argoDir 'skills\argo-init') -Destination $openClawSkillDest
|
|
917
|
-
Write-Host
|
|
926
|
+
Write-Host " argo\skills\ea-human-reconcile -> $OpenClawHome\skills\ea-human-reconcile (OpenClaw managed skill, all agents)"
|
|
918
927
|
Copy-Tree -Source (Join-Path $argoDir 'skills\ea-human-reconcile') -Destination (Join-Path (Join-Path $OpenClawHome 'skills') 'ea-human-reconcile')
|
|
919
|
-
Write-Host
|
|
920
|
-
Copy-Tree -Source $diagSkillSrc -Destination (Join-Path (Join-Path $OpenClawHome 'skills') 'agent-search-diagnosis')
|
|
928
|
+
Write-Host " argo\skills\agent-search-diagnosis -> $OpenClawHome\skills\agent-search-diagnosis (OpenClaw managed skill, all agents)"
|
|
929
|
+
Copy-Tree -Source $diagSkillSrc -Destination (Join-Path (Join-Path $OpenClawHome 'skills') 'agent-search-diagnosis')
|
|
921
930
|
|
|
922
931
|
Write-Host ' OpenClaw injects AGENTS.md into Project Context on every session, so the wakeup'
|
|
923
932
|
Write-Host ' gate (UNCONDITIONAL STARTUP GATE) is active on the next OpenClaw session; restart'
|
package/package.json
CHANGED