@adhdev/daemon-core 0.9.82-rc.507 → 0.9.82-rc.509

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.
@@ -7,6 +7,18 @@
7
7
  */
8
8
  import type { LocalMeshEntry, LocalMeshNodeEntry, RepoMeshPolicy, RepoMeshNodePolicy, RepoMeshNodeCapabilities, RepoMeshCoordinatorConfig, RepoMeshHostMetadata, RepoMeshDaemonRole } from '../repo-mesh-types.js';
9
9
  import type { MagiKindPanelMap, MagiSlot, DifficultyBrainMap } from '@adhdev/mesh-shared';
10
+ /**
11
+ * Migrate a node policy's legacy `providerRoles` cap onto `slots[].maxParallel`,
12
+ * in place, then delete the `providerRoles` field. Defensive against malformed
13
+ * entries. Returns true when the policy was mutated.
14
+ *
15
+ * Behavior-preserving: the resulting slots carry the same per-(node, provider)
16
+ * cap the queue previously enforced from providerRoles. When the node had no
17
+ * explicit slots, slots are derived from the legacy providerPriority (folding the
18
+ * caps in via deriveSlotsFromLegacy-equivalent logic); when it did, each cap is
19
+ * merged into the first matching-provider slot lacking a maxParallel.
20
+ */
21
+ export declare function migrateProviderRolesToSlots(policy: unknown): boolean;
10
22
  export declare function normalizeCapabilityTags(value: unknown): string[] | undefined;
11
23
  /**
12
24
  * Normalize a Git remote URL into a stable identity string.