@adhdev/daemon-standalone 1.0.18-rc.17 → 1.0.18-rc.19

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/public/index.html CHANGED
@@ -7,9 +7,9 @@
7
7
  <meta name="description" content="ADHDev self-hosted dashboard for controlling AI agents" />
8
8
  <link rel="icon" href="/otter-logo.png" />
9
9
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap" rel="stylesheet" />
10
- <script type="module" crossorigin src="/assets/index-Bl9kcPbG.js"></script>
10
+ <script type="module" crossorigin src="/assets/index-C-MNhUSW.js"></script>
11
11
  <link rel="modulepreload" crossorigin href="/assets/vendor-DyCWA2YZ.js">
12
- <link rel="stylesheet" crossorigin href="/assets/index-BKjoCTf1.css">
12
+ <link rel="stylesheet" crossorigin href="/assets/index-CXZe3Zxn.css">
13
13
  </head>
14
14
  <body>
15
15
  <!-- Apply theme immediately to prevent FOIT (Flash of Incorrect Theme) -->
@@ -6993,6 +6993,19 @@ async function meshLaunchSession(ctx, args) {
6993
6993
  const coordinatorDaemonId = resolveCoordinatorDaemonId(ctx);
6994
6994
  const spawnedSessionVisibility = readSpawnedSessionVisibility(ctx.mesh.policy);
6995
6995
  const delegatedWorkerAutoApprove = (0, import_daemon_core4.resolveDelegatedWorkerAutoApprove)(ctx.mesh.policy, node.policy);
6996
+ let requestedAutoApproveMode;
6997
+ const delegatedWorkerDangerousModeAllow = (0, import_daemon_core4.resolveDelegatedWorkerDangerousModeAllow)(ctx.mesh.policy, node.policy);
6998
+ if (delegatedWorkerAutoApprove !== false) {
6999
+ try {
7000
+ const ws = typeof node.workspace === "string" && node.workspace.trim() ? node.workspace.trim() : "";
7001
+ if (ws) {
7002
+ const repo = (0, import_daemon_core4.loadRepoMeshJsonConfig)(ws);
7003
+ const repoMode = repo.sourceType === "repo_file" ? repo.config?.providerDefaults?.autoApproveModes?.[resolvedProviderType] : void 0;
7004
+ if (typeof repoMode === "string" && repoMode.trim()) requestedAutoApproveMode = repoMode.trim();
7005
+ }
7006
+ } catch {
7007
+ }
7008
+ }
6996
7009
  const isLocalNode = isLocalControlPlaneNode(ctx, node);
6997
7010
  if (node.daemonId && !isLocalNode && !coordinatorDaemonId) {
6998
7011
  return JSON.stringify(buildMissingCoordinatorDaemonIdFailure(ctx, node, resolvedProviderType), null, 2);
@@ -7048,7 +7061,14 @@ async function meshLaunchSession(ctx, args) {
7048
7061
  spawnedSessionVisibility,
7049
7062
  // Delegated worker auto-approval (see resolveDelegatedWorkerAutoApprove).
7050
7063
  // Lands in settingsOverride and beats the global per-provider autoApprove.
7064
+ // When a repo-requested mode ID is present AND auto-approve is enabled,
7065
+ // stamp the mode ID (validated daemon-side) alongside the boolean; the
7066
+ // adapter's resolveProviderAutoApproveMode prefers the mode and fails
7067
+ // closed on an unknown ID. delegatedWorkerDangerousModeAllow rides along
7068
+ // so the adapter can honor/deny a dangerous requested mode.
7051
7069
  autoApprove: delegatedWorkerAutoApprove,
7070
+ ...requestedAutoApproveMode ? { autoApproveMode: requestedAutoApproveMode } : {},
7071
+ delegatedWorkerDangerousModeAllow,
7052
7072
  ...coordinatorDaemonId ? { meshCoordinatorDaemonId: coordinatorDaemonId } : {},
7053
7073
  // (3) Stamp the originating coordinator SESSION at launch too, so a worker
7054
7074
  // launched via mesh_launch_session routes its completions back to the exact