@dotdrelle/wiki-manager 0.15.78 → 0.15.79
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/package.json +1 -1
- package/src/core/buildInfo.json +2 -2
- package/src/core/mcp.js +1 -1
- package/src/core/runtimeLog.js +5 -2
- package/src/core/runtimeLog.test.js +14 -0
- package/wiki-workspace +7 -5
package/package.json
CHANGED
package/src/core/buildInfo.json
CHANGED
package/src/core/mcp.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { existsSync, readFileSync } from 'node:fs';
|
|
2
2
|
import { managerEnvFile, managerMcpEndpointsFile, readEnvFile } from './env.js';
|
|
3
3
|
|
|
4
|
-
const WIKI_MANAGER_VERSION = '0.15.
|
|
4
|
+
const WIKI_MANAGER_VERSION = '0.15.79';
|
|
5
5
|
|
|
6
6
|
function envValue(key) {
|
|
7
7
|
const filePath = managerEnvFile();
|
package/src/core/runtimeLog.js
CHANGED
|
@@ -181,8 +181,11 @@ export function isDispatchPlumbingLine(line) {
|
|
|
181
181
|
// "Agent: classified input as …", "Agent: streaming final answer…" — describe
|
|
182
182
|
// how the agent works, not what the business run does. They belong with the
|
|
183
183
|
// dispatch plumbing in the Agent status tab; the Runtime tab keeps the
|
|
184
|
-
// business flow (plan, task transitions, failures).
|
|
185
|
-
|
|
184
|
+
// business flow (plan, task transitions, failures). "Agents: …" (plural — the
|
|
185
|
+
// slash-command lifecycle lines from `agents up`/`agents down`, e.g. "Agents:
|
|
186
|
+
// reloading manager environment…") is the same category and must match too:
|
|
187
|
+
// the singular-only pattern let those lines fall through to the Runtime tab.
|
|
188
|
+
const AGENT_TRACE_LINE = /^(?:runtime\s+)?(?:\d{1,2}:\d{2}(?::\d{2})?\s*(?:·\s*)?)?Agents?:\s/;
|
|
186
189
|
|
|
187
190
|
export function isAgentTraceLine(line) {
|
|
188
191
|
return AGENT_TRACE_LINE.test(String(line ?? ''));
|
|
@@ -170,6 +170,20 @@ test('isAgentTraceLine recognises the "Agent:" traces for the Agent status tab',
|
|
|
170
170
|
}
|
|
171
171
|
});
|
|
172
172
|
|
|
173
|
+
test('isAgentTraceLine also recognises the plural "Agents:" lifecycle lines', () => {
|
|
174
|
+
// The `agents up`/`agents down` slash-command lines are written in the
|
|
175
|
+
// plural ("Agents: reloading manager environment…") and were falling
|
|
176
|
+
// through the singular-only pattern into the Runtime tab.
|
|
177
|
+
for (const line of [
|
|
178
|
+
'13:55:25 Agents: reloading manager environment and MCP endpoints…',
|
|
179
|
+
'13:55:26 Agents: stack started degraded — one optional agent failed; the base agents are up.',
|
|
180
|
+
'13:55:27 Agents: docker output — exit code 1',
|
|
181
|
+
'runtime 13:55:25 Agents: starting external agents…',
|
|
182
|
+
]) {
|
|
183
|
+
assert.equal(isAgentTraceLine(line), true, `expected an agent trace: ${line}`);
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
|
|
173
187
|
test('isAgentTraceLine leaves every other line for the Runtime tab', () => {
|
|
174
188
|
for (const line of [
|
|
175
189
|
'14:42:18 ▸ Polish proposition — started (knowledge.polish → agent-production)',
|
package/wiki-workspace
CHANGED
|
@@ -140,7 +140,6 @@ wiki CLI commands reachable through `wiki <workspace> run`:
|
|
|
140
140
|
lint Static checks: dead links, orphans, stale deliverables
|
|
141
141
|
add-skill <source> Install a workspace method (directory, .zip, HTTPS .zip)
|
|
142
142
|
config Show the effective .wikirc.yaml
|
|
143
|
-
group-concepts Regroup wiki concepts
|
|
144
143
|
doctor, ingest, build, export Also available directly: wiki <workspace> <command>
|
|
145
144
|
|
|
146
145
|
History is versioned for wiki/, templates/, build-context/, deliverables/,
|
|
@@ -1352,10 +1351,13 @@ reset_workspace() {
|
|
|
1352
1351
|
# `.wikirc*`, templates/ and build-context/ come through untouched.
|
|
1353
1352
|
run_wiki "$workspace" init
|
|
1354
1353
|
|
|
1355
|
-
# The scaffold ships a demo
|
|
1356
|
-
#
|
|
1357
|
-
#
|
|
1358
|
-
|
|
1354
|
+
# The scaffold ships a handful of demo-*.md sources in raw/untracked/ (a
|
|
1355
|
+
# project brief plus a few notes chosen to classify into different concepts
|
|
1356
|
+
# with overlapping subjects/tags, so a first ingest already produces a
|
|
1357
|
+
# non-trivial graph). Reappearing here they would not read as samples but as
|
|
1358
|
+
# pending sources, and the next ingest would file them into the wiki as if
|
|
1359
|
+
# the user had provided them.
|
|
1360
|
+
rm -f -- "$ws_path"/raw/untracked/demo-*.md
|
|
1359
1361
|
|
|
1360
1362
|
printf 'Reset done: %s\n' "$workspace"
|
|
1361
1363
|
printf 'Kept: %s\n' "${kept[*]:-(nothing)}"
|