refactor: package-own watchdog orchestrator entrypoint
This commit is contained in:
@@ -127,7 +127,7 @@ test('orchestrator adapter can bootstrap from profile artifact loader path', ()
|
||||
|
||||
const result = runOrchestratorAdapter({
|
||||
profileId: 'strict-manager-mode',
|
||||
repoRootOverride: path.resolve(packageRoot),
|
||||
repoRootOverride: path.resolve(packageRoot, '..', '..'),
|
||||
state: statePath,
|
||||
evidenceDir: path.join(root, 'evidence'),
|
||||
eventDir: path.join(root, 'events'),
|
||||
@@ -160,7 +160,7 @@ test('orchestrator adapter can use artifact_roots.queueItems as the default queu
|
||||
|
||||
const result = runOrchestratorAdapter({
|
||||
profileId: 'strict-manager-mode',
|
||||
repoRootOverride: path.resolve(packageRoot),
|
||||
repoRootOverride: path.resolve(packageRoot, '..', '..'),
|
||||
state: statePath,
|
||||
evidenceDir: path.join(root, 'evidence'),
|
||||
eventDir: path.join(root, 'events'),
|
||||
@@ -184,7 +184,7 @@ test('orchestrator adapter fails closed at use time when artifact_roots.queueIte
|
||||
const fakeRepoRoot = path.join(sandbox, 'repo');
|
||||
const outsideRoot = path.join(sandbox, 'outside');
|
||||
const realRepoRoot = path.resolve(packageRoot);
|
||||
fs.mkdirSync(path.join(fakeRepoRoot, 'scripts'), { recursive: true });
|
||||
fs.mkdirSync(path.join(fakeRepoRoot, 'plugins', 'reporting-governance', 'scripts'), { recursive: true });
|
||||
fs.mkdirSync(path.join(fakeRepoRoot, 'state', 'operator-notify-queue'), { recursive: true });
|
||||
fs.mkdirSync(outsideRoot, { recursive: true });
|
||||
for (const name of [
|
||||
@@ -194,7 +194,7 @@ test('orchestrator adapter fails closed at use time when artifact_roots.queueIte
|
||||
'operator_notify_bridge_supervisor.mjs',
|
||||
'operator_notify_sender_binding.mjs',
|
||||
]) {
|
||||
fs.copyFileSync(path.join(realRepoRoot, 'scripts', name), path.join(fakeRepoRoot, 'scripts', name));
|
||||
fs.copyFileSync(path.join(realRepoRoot, 'scripts', name), path.join(fakeRepoRoot, 'plugins', 'reporting-governance', 'scripts', name));
|
||||
}
|
||||
|
||||
const deploymentBinding = createDeploymentBindingContract({
|
||||
@@ -210,13 +210,13 @@ test('orchestrator adapter fails closed at use time when artifact_roots.queueIte
|
||||
package: { pluginVersion: '0.1.0-mainline' },
|
||||
bindings: {
|
||||
runtime: 'openclaw',
|
||||
entrypoint: 'scripts/watchdog_auto_notify_orchestrator.mjs',
|
||||
entrypoint: 'plugins/reporting-governance/scripts/watchdog_auto_notify_orchestrator.mjs',
|
||||
scripts: {
|
||||
watchdog: 'scripts/long_task_watchdog.mjs',
|
||||
dispatcher: 'scripts/operator_notify_dispatcher.mjs',
|
||||
bridgeSupervisor: 'scripts/operator_notify_bridge_supervisor.mjs',
|
||||
senderBinding: 'scripts/operator_notify_sender_binding.mjs',
|
||||
orchestrator: 'scripts/watchdog_auto_notify_orchestrator.mjs'
|
||||
watchdog: 'plugins/reporting-governance/scripts/long_task_watchdog.mjs',
|
||||
dispatcher: 'plugins/reporting-governance/scripts/operator_notify_dispatcher.mjs',
|
||||
bridgeSupervisor: 'plugins/reporting-governance/scripts/operator_notify_bridge_supervisor.mjs',
|
||||
senderBinding: 'plugins/reporting-governance/scripts/operator_notify_sender_binding.mjs',
|
||||
orchestrator: 'plugins/reporting-governance/scripts/watchdog_auto_notify_orchestrator.mjs'
|
||||
},
|
||||
artifact_roots: {
|
||||
queueItems: 'state/operator-notify-queue'
|
||||
|
||||
Reference in New Issue
Block a user