@adhdev/daemon-core 0.9.82-rc.413 → 0.9.82-rc.415
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/dist/cli-adapters/resolve-executable.d.ts +55 -0
- package/dist/config/mesh-config.d.ts +15 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +194 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +190 -20
- package/dist/index.mjs.map +1 -1
- package/dist/mesh/mesh-events-coordinator.d.ts +1 -1
- package/dist/mesh/mesh-events.d.ts +1 -1
- package/dist/mesh/mesh-queue-assignment.d.ts +18 -0
- package/dist/mesh/mesh-work-queue.d.ts +9 -0
- package/dist/repo-mesh-types.d.ts +8 -0
- package/package.json +2 -2
- package/src/cli-adapters/resolve-executable.ts +117 -3
- package/src/commands/med-family/mesh-queue.ts +23 -1
- package/src/config/mesh-config.ts +116 -0
- package/src/index.ts +10 -0
- package/src/mesh/mesh-event-forwarding.ts +23 -7
- package/src/mesh/mesh-events-coordinator.ts +1 -0
- package/src/mesh/mesh-events-pending.ts +15 -0
- package/src/mesh/mesh-events.ts +1 -0
- package/src/mesh/mesh-queue-assignment.ts +24 -0
- package/src/mesh/mesh-refine-gates.ts +12 -5
- package/src/mesh/mesh-work-queue.ts +13 -0
- package/src/mesh/worktree-bootstrap-config.ts +6 -2
- package/src/repo-mesh-types.ts +8 -0
|
@@ -4,7 +4,7 @@ import { execFile, execFileSync } from 'node:child_process';
|
|
|
4
4
|
import { createHash } from 'node:crypto';
|
|
5
5
|
import { promisify } from 'node:util';
|
|
6
6
|
import * as yaml from 'js-yaml';
|
|
7
|
-
import { resolveWin32Executable } from '../cli-adapters/resolve-executable.js';
|
|
7
|
+
import { resolveWin32Executable, buildWin32ExecFileSpawn } from '../cli-adapters/resolve-executable.js';
|
|
8
8
|
import {
|
|
9
9
|
isMeshConfigRecord,
|
|
10
10
|
normalizeMeshCommandConfig,
|
|
@@ -311,14 +311,18 @@ export async function runMeshWorktreeBootstrap(mesh: any, workspace: string): Pr
|
|
|
311
311
|
// (which appends only .com/.exe) cannot resolve → spawn ENOENT. Resolve
|
|
312
312
|
// to an absolute path first (no-op on non-win32 / already-absolute).
|
|
313
313
|
const resolvedCommand = resolveWin32Executable(command.command);
|
|
314
|
+
// A win32 .cmd/.bat shim (npm/npx/tsc) cannot be exec'd directly — wrap
|
|
315
|
+
// it in cmd.exe /c (no-op off win32 / for a real .exe).
|
|
316
|
+
const spawn = buildWin32ExecFileSpawn(resolvedCommand, command.args);
|
|
314
317
|
try {
|
|
315
|
-
const result = await execFileAsync(
|
|
318
|
+
const result = await execFileAsync(spawn.file, spawn.args, {
|
|
316
319
|
cwd,
|
|
317
320
|
encoding: 'utf8',
|
|
318
321
|
timeout: command.timeoutMs || DEFAULT_TIMEOUT_MS,
|
|
319
322
|
maxBuffer: command.outputLimitBytes || DEFAULT_OUTPUT_LIMIT_BYTES,
|
|
320
323
|
env: { ...process.env, CI: process.env.CI || '1', ...(command.env || {}) },
|
|
321
324
|
windowsHide: true,
|
|
325
|
+
...(spawn.windowsVerbatimArguments ? { windowsVerbatimArguments: true } : {}),
|
|
322
326
|
});
|
|
323
327
|
state.commandsRun?.push({
|
|
324
328
|
command: command.command,
|
package/src/repo-mesh-types.ts
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
import type { GitRepoStatus, GitCompactSummary } from './git/git-types.js';
|
|
15
15
|
import type { MeshMissionSummary, MeshMissionSlimSummary } from './mesh/mesh-missions.js';
|
|
16
|
+
import type { MagiPanelMap } from '@adhdev/mesh-shared';
|
|
16
17
|
|
|
17
18
|
// ─── Core Mesh Types ────────────────────────────
|
|
18
19
|
|
|
@@ -705,6 +706,13 @@ export interface RepoMeshCoordinatorConfig {
|
|
|
705
706
|
*/
|
|
706
707
|
export interface LocalMeshConfig {
|
|
707
708
|
meshes: LocalMeshEntry[];
|
|
709
|
+
/**
|
|
710
|
+
* MAGI cross-verification panels (machine-local). Keyed by panel name; each
|
|
711
|
+
* binds concrete `(node × provider)` members — machine-dependent facts — so
|
|
712
|
+
* panels live here in meshes.json, never in the repo-shared .adhdev/mesh.json.
|
|
713
|
+
* Optional: absent on configs written before MAGI existed.
|
|
714
|
+
*/
|
|
715
|
+
magiPanels?: MagiPanelMap;
|
|
708
716
|
}
|
|
709
717
|
|
|
710
718
|
export interface LocalMeshEntry {
|