@ddtcorex/dsh-maestro-core 0.12.0 → 0.12.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/lib/guard/rules.js
CHANGED
|
@@ -37,14 +37,12 @@ const FILE_TOOLS = new Set([
|
|
|
37
37
|
'read',
|
|
38
38
|
'write',
|
|
39
39
|
'edit',
|
|
40
|
-
'maestro_read_file',
|
|
41
|
-
'maestro_write_file',
|
|
42
40
|
'fs_read',
|
|
43
41
|
'fs_write',
|
|
44
42
|
'read_file',
|
|
45
43
|
'write_file',
|
|
46
44
|
]);
|
|
47
|
-
const WRITE_FILE_TOOLS = new Set(['write', 'edit', '
|
|
45
|
+
const WRITE_FILE_TOOLS = new Set(['write', 'edit', 'fs_write', 'write_file']);
|
|
48
46
|
/** Verbs that actually touch file contents — a protected path next to one is an access. */
|
|
49
47
|
const ACCESS_VERBS = /\b(cat|bat|head|tail|less|more|cp|scp|rsync|curl|wget|source|tee|dd|install|xxd|base64|openssl|gpg|tar|zip)\b/;
|
|
50
48
|
/**
|
package/package.json
CHANGED
|
@@ -164,7 +164,7 @@ turn instead of five.
|
|
|
164
164
|
and the listener tree instead; a rollback loop shows up in the daemon's
|
|
165
165
|
outcome and the pid, not in an arbitrary wait.
|
|
166
166
|
- **One restart per batch.** Stage every settings/lib change, then restart once.
|
|
167
|
-
|
|
167
|
+
The settings store memoizes per process, so N edits need N restarts unless they are
|
|
168
168
|
staged together.
|
|
169
169
|
|
|
170
170
|
## Post-swap checks
|
|
@@ -63,7 +63,7 @@ Usage: restart-dsh-web.sh --repo <deepseek-harness> [--log <path>] [--confirm|--
|
|
|
63
63
|
restart-dsh-web.sh --check-supervisor
|
|
64
64
|
restart-dsh-web.sh --reload-supervisor
|
|
65
65
|
|
|
66
|
-
Safely hand over the DSH Web process that owns ports 3000 and
|
|
66
|
+
Safely hand over the DSH Web process that owns ports 3000, 3080, 3081 and 3082.
|
|
67
67
|
|
|
68
68
|
Options:
|
|
69
69
|
--repo <path> DeepSeek Harness checkout (or set DSH_REPO).
|
|
@@ -267,7 +267,7 @@ for command in ss ps grep sort; do
|
|
|
267
267
|
done
|
|
268
268
|
|
|
269
269
|
listener_pids="$({ ss -tlnp 2>/dev/null || true; } | grep -E ':(3000|3080|3081|3082)([[:space:]]|$)' | grep -oE 'pid=[0-9]+' | cut -d= -f2 | sort -u || true)"
|
|
270
|
-
[[ -n "$listener_pids" ]] || fail 'no listeners found on ports 3000/3080 (proxy)
|
|
270
|
+
[[ -n "$listener_pids" ]] || fail 'no listeners found on ports 3000 (unbound) / 3080 (PIN proxy) / 3081 (public proxy) / 3082 (raw webserver)'
|
|
271
271
|
|
|
272
272
|
resolve_tree() {
|
|
273
273
|
local current="$1"
|
package/src/host/guard/rules.ts
CHANGED
|
@@ -97,14 +97,12 @@ const FILE_TOOLS = new Set([
|
|
|
97
97
|
'read',
|
|
98
98
|
'write',
|
|
99
99
|
'edit',
|
|
100
|
-
'maestro_read_file',
|
|
101
|
-
'maestro_write_file',
|
|
102
100
|
'fs_read',
|
|
103
101
|
'fs_write',
|
|
104
102
|
'read_file',
|
|
105
103
|
'write_file',
|
|
106
104
|
])
|
|
107
|
-
const WRITE_FILE_TOOLS = new Set(['write', 'edit', '
|
|
105
|
+
const WRITE_FILE_TOOLS = new Set(['write', 'edit', 'fs_write', 'write_file'])
|
|
108
106
|
/** Verbs that actually touch file contents — a protected path next to one is an access. */
|
|
109
107
|
const ACCESS_VERBS = /\b(cat|bat|head|tail|less|more|cp|scp|rsync|curl|wget|source|tee|dd|install|xxd|base64|openssl|gpg|tar|zip)\b/
|
|
110
108
|
|