@seaveyon/harness-switch 0.34.1 → 0.34.2
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/harness-switch.js +7 -4
- package/package.json +1 -1
package/dist/harness-switch.js
CHANGED
|
@@ -37571,10 +37571,13 @@ class ModelFavoriteApplyService {
|
|
|
37571
37571
|
resolveOverwrite(favorite, draft, remaps) {
|
|
37572
37572
|
const profiles = this.linkedReferences(favorite.id);
|
|
37573
37573
|
const drafts = this.toolModels.favoriteDraftItems(favorite.id);
|
|
37574
|
-
const owners = drafts.map((item) =>
|
|
37575
|
-
item
|
|
37576
|
-
|
|
37577
|
-
|
|
37574
|
+
const owners = drafts.map((item) => {
|
|
37575
|
+
const orphanedLegacySource = item.itemId === item.connectionId && !favorite.connections.some((connection) => connection.id === item.connectionId);
|
|
37576
|
+
return {
|
|
37577
|
+
item,
|
|
37578
|
+
owner: profiles.find((ref) => ref.harness === item.harness && ref.profile === item.profile && (ref.connectionId === item.connectionId || orphanedLegacySource) && ref.link?.collectionOverrides !== undefined)
|
|
37579
|
+
};
|
|
37580
|
+
});
|
|
37578
37581
|
const refs = [
|
|
37579
37582
|
...profiles,
|
|
37580
37583
|
...owners.flatMap(({ item, owner }) => owner ? [] : [{ harness: item.harness, itemId: item.itemId, connectionId: item.connectionId }])
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seaveyon/harness-switch",
|
|
3
|
-
"version": "0.34.
|
|
3
|
+
"version": "0.34.2",
|
|
4
4
|
"description": "A secure web control plane that switches API providers for Claude Code, Codex, Kimi Code, Pi and DeepSeek Harness by writing their native config files on SSH servers.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude-code",
|