@adhdev/daemon-standalone 0.9.82-rc.269 → 0.9.82-rc.270
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/index.js +108 -20
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/vendor/mcp-server/index.js +4 -0
- package/vendor/mcp-server/index.js.map +1 -1
package/package.json
CHANGED
|
@@ -3929,6 +3929,7 @@ async function meshLaunchSession(ctx, args) {
|
|
|
3929
3929
|
const coordinatorNode = resolveCoordinatorNode(ctx);
|
|
3930
3930
|
const coordinatorDaemonId = coordinatorNode?.daemonId || ctx.localDaemonId;
|
|
3931
3931
|
const spawnedSessionVisibility = readSpawnedSessionVisibility(ctx.mesh.policy);
|
|
3932
|
+
const delegatedWorkerAutoApprove = (0, import_daemon_core.resolveDelegatedWorkerAutoApprove)(ctx.mesh.policy, node.policy);
|
|
3932
3933
|
const isLocalNode = isLocalControlPlaneNode(ctx, node);
|
|
3933
3934
|
if (node.daemonId && !isLocalNode && !coordinatorDaemonId) {
|
|
3934
3935
|
return JSON.stringify(buildMissingCoordinatorDaemonIdFailure(ctx, node, resolvedProviderType), null, 2);
|
|
@@ -3945,6 +3946,9 @@ async function meshLaunchSession(ctx, args) {
|
|
|
3945
3946
|
meshNodeFor: ctx.mesh.id,
|
|
3946
3947
|
meshNodeId: args.node_id,
|
|
3947
3948
|
spawnedSessionVisibility,
|
|
3949
|
+
// Delegated worker auto-approval (see resolveDelegatedWorkerAutoApprove).
|
|
3950
|
+
// Lands in settingsOverride and beats the global per-provider autoApprove.
|
|
3951
|
+
autoApprove: delegatedWorkerAutoApprove,
|
|
3948
3952
|
...coordinatorDaemonId ? { meshCoordinatorDaemonId: coordinatorDaemonId } : {},
|
|
3949
3953
|
...coordinatorNode?.id ? { meshCoordinatorNodeId: coordinatorNode.id } : {},
|
|
3950
3954
|
launchedByCoordinator: true
|