@goodandready/dsh-moa 0.2.39 → 0.2.40

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/index.js CHANGED
@@ -17,6 +17,7 @@ import { registerMoaRoutes } from './routes.js'
17
17
  import { resolvePresetForPrompt } from './moa-router.js'
18
18
  import { createLiveCanvasClient } from './live-canvas.js'
19
19
  import { registerPluginUpdater } from './updater.js'
20
+ import { bestEffort } from './best-effort.js'
20
21
 
21
22
  export const name = '@goodandready/dsh-moa'
22
23
  export { collectProjectContext, formatProjectContext } from './file-workspace.js'
@@ -38,7 +39,11 @@ export function apply(ctx, config) {
38
39
 
39
40
  let localOverrides = null
40
41
  const getSourceConfig = () => {
41
- const liveSource = plainConfig(ctx.config ?? config ?? {})
42
+ let liveCandidate = ctx.fiber?.config
43
+ if (!liveCandidate && ('config' in ctx)) {
44
+ bestEffort('ctx.config probe', () => { liveCandidate = ctx.config }, ctx.logger)
45
+ }
46
+ const liveSource = plainConfig(liveCandidate ?? config ?? {})
42
47
  return localOverrides ? { ...liveSource, ...localOverrides } : liveSource
43
48
  }
44
49
  const live = () => {
@@ -110,7 +115,7 @@ export function apply(ctx, config) {
110
115
  Config,
111
116
  plainConfig,
112
117
  webServerPort: ctx.webServer?.port,
113
- timeMachineEngine: ctx.get?.('timeMachineEngine') || ctx.timeMachineEngine,
118
+ timeMachineEngine: ctx.reflect?.get?.('timeMachineEngine', false),
114
119
  })
115
120
 
116
121
  // Session turn interceptor: route turn to real aggregator model & stream MoA synthesis
@@ -207,7 +212,7 @@ export function apply(ctx, config) {
207
212
  prices: cfg.prices || {},
208
213
  liveCanvas,
209
214
  webServerPort: ctx.webServer?.port,
210
- timeMachineEngine: ctx.get?.('timeMachineEngine') || ctx.timeMachineEngine,
215
+ timeMachineEngine: ctx.reflect?.get?.('timeMachineEngine', false),
211
216
  }
212
217
 
213
218
  if (event.signal) {
package/lib/routes.js CHANGED
@@ -333,7 +333,7 @@ ctx.effect(() => {
333
333
  runId,
334
334
  keepMoa: true,
335
335
  port: ctx.webServer?.port,
336
- timeMachineEngine: ctx.get?.('timeMachineEngine') || ctx.timeMachineEngine,
336
+ timeMachineEngine: timeMachineEngine || ctx.reflect?.get?.('timeMachineEngine', false),
337
337
  force: Boolean(body?.force),
338
338
  })
339
339
  writeJson(res, 200, { ok: true, candidateIndex, promotedFiles, checkpoint: promotedFiles?.checkpoint || null })
@@ -571,7 +571,7 @@ ctx.effect(() => {
571
571
  userPrompt: prompt, messages: payload.messages || [], preset, callLlm,
572
572
  cwd: payload.cwd || process.cwd(), prices: cfg.prices || {}, liveCanvas,
573
573
  webServerPort: webServerPort || ctx.webServer?.port,
574
- timeMachineEngine: timeMachineEngine || ctx.get?.('timeMachineEngine') || ctx.timeMachineEngine,
574
+ timeMachineEngine: timeMachineEngine || ctx.reflect?.get?.('timeMachineEngine', false),
575
575
  timeMachineUrl: payload.timeMachineUrl, force: payload.force,
576
576
  checkpoint: payload.checkpoint, checkpointFn: payload.checkpointFn,
577
577
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodandready/dsh-moa",
3
- "version": "0.2.39",
3
+ "version": "0.2.40",
4
4
  "description": "Mixture of Agents (MoA) plugin for DeepSeek Harness with /moa slash command",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",