@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.
- package/dist/config/mesh-config.d.ts +12 -0
- package/dist/index.js +285 -83
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +285 -83
- package/dist/index.mjs.map +1 -1
- package/dist/mesh/mesh-node-slots.d.ts +22 -0
- package/dist/mesh/mesh-runtime-store.d.ts +2 -2
- package/dist/mesh/mesh-scheduling-runtime.d.ts +5 -1
- package/dist/mesh/mesh-work-queue.d.ts +3 -3
- package/dist/mesh/model-provider-compat.d.ts +44 -0
- package/dist/providers/cli-provider-instance-types.d.ts +1 -0
- package/dist/providers/cli-provider-instance.d.ts +54 -0
- package/dist/repo-mesh-types.d.ts +30 -29
- package/package.json +3 -3
- package/src/commands/med-family/mesh-crud.ts +24 -14
- package/src/config/mesh-config.ts +71 -24
- package/src/mesh/coordinator-prompt.ts +26 -16
- package/src/mesh/mesh-node-slots.ts +52 -0
- package/src/mesh/mesh-queue-assignment.ts +43 -24
- package/src/mesh/mesh-runtime-store.ts +3 -3
- package/src/mesh/mesh-scheduling-runtime.ts +24 -9
- package/src/mesh/mesh-work-queue.ts +3 -3
- package/src/mesh/model-provider-compat.ts +73 -0
- package/src/providers/cli-provider-instance-types.ts +15 -0
- package/src/providers/cli-provider-instance.ts +174 -2
- package/src/repo-mesh-types.ts +39 -38
|
@@ -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.
|