@hasna/switcher 0.1.8 → 0.2.0
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/README.md +161 -3
- package/dist/chatgpt-launch.d.ts +5 -0
- package/dist/claude-desktop-launch.d.ts +11 -0
- package/dist/cli/index.js +1232 -403
- package/dist/codex-delegation.d.ts +7 -0
- package/dist/credentials.d.ts +7 -7
- package/dist/desktop-apps.d.ts +25 -0
- package/dist/desktop-state.d.ts +3 -0
- package/dist/domain.d.ts +23 -1
- package/dist/gemini-bridge.d.ts +2 -1
- package/dist/generated/api.d.ts +16 -0
- package/dist/harness-process.d.ts +1 -0
- package/dist/harness-types.d.ts +3 -0
- package/dist/harnesses.d.ts +13 -3
- package/dist/hermes-backend.d.ts +2 -1
- package/dist/index.js +164 -64
- package/dist/inference-gateway.d.ts +4 -1
- package/dist/launcher.d.ts +6 -0
- package/dist/lib/local-opt-in.d.ts +30 -0
- package/dist/mcp/index.js +4960 -89
- package/dist/model-policy-schema.d.ts +6 -0
- package/dist/presets.d.ts +2 -0
- package/dist/provider-request.d.ts +15 -0
- package/dist/provider-stream.d.ts +3 -1
- package/dist/reasoning.d.ts +10 -0
- package/dist/runtime.d.ts +2 -0
- package/dist/sdk.d.ts +25 -0
- package/dist/sdk.js +164 -64
- package/dist/serve/index.js +288 -73
- package/openapi.json +210 -1
- package/package.json +5 -3
package/openapi.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"openapi": "3.0.3",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Switcher API",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.2.0",
|
|
6
6
|
"description": "Authenticated provider/profile/catalog control plane. Launches run locally; the API never returns provider credentials."
|
|
7
7
|
},
|
|
8
8
|
"security": [
|
|
@@ -1441,6 +1441,23 @@
|
|
|
1441
1441
|
},
|
|
1442
1442
|
"maxItems": 100
|
|
1443
1443
|
},
|
|
1444
|
+
"reasoningEfforts": {
|
|
1445
|
+
"type": "array",
|
|
1446
|
+
"items": {
|
|
1447
|
+
"type": "string",
|
|
1448
|
+
"enum": [
|
|
1449
|
+
"none",
|
|
1450
|
+
"minimal",
|
|
1451
|
+
"low",
|
|
1452
|
+
"medium",
|
|
1453
|
+
"high",
|
|
1454
|
+
"xhigh",
|
|
1455
|
+
"max",
|
|
1456
|
+
"ultra"
|
|
1457
|
+
]
|
|
1458
|
+
},
|
|
1459
|
+
"maxItems": 8
|
|
1460
|
+
},
|
|
1444
1461
|
"supportedGenerationMethods": {
|
|
1445
1462
|
"type": "array",
|
|
1446
1463
|
"items": {
|
|
@@ -1520,6 +1537,23 @@
|
|
|
1520
1537
|
},
|
|
1521
1538
|
"maxItems": 100
|
|
1522
1539
|
},
|
|
1540
|
+
"reasoningEfforts": {
|
|
1541
|
+
"type": "array",
|
|
1542
|
+
"items": {
|
|
1543
|
+
"type": "string",
|
|
1544
|
+
"enum": [
|
|
1545
|
+
"none",
|
|
1546
|
+
"minimal",
|
|
1547
|
+
"low",
|
|
1548
|
+
"medium",
|
|
1549
|
+
"high",
|
|
1550
|
+
"xhigh",
|
|
1551
|
+
"max",
|
|
1552
|
+
"ultra"
|
|
1553
|
+
]
|
|
1554
|
+
},
|
|
1555
|
+
"maxItems": 8
|
|
1556
|
+
},
|
|
1523
1557
|
"supportedGenerationMethods": {
|
|
1524
1558
|
"type": "array",
|
|
1525
1559
|
"items": {
|
|
@@ -1685,6 +1719,23 @@
|
|
|
1685
1719
|
},
|
|
1686
1720
|
"maxItems": 100
|
|
1687
1721
|
},
|
|
1722
|
+
"reasoningEfforts": {
|
|
1723
|
+
"type": "array",
|
|
1724
|
+
"items": {
|
|
1725
|
+
"type": "string",
|
|
1726
|
+
"enum": [
|
|
1727
|
+
"none",
|
|
1728
|
+
"minimal",
|
|
1729
|
+
"low",
|
|
1730
|
+
"medium",
|
|
1731
|
+
"high",
|
|
1732
|
+
"xhigh",
|
|
1733
|
+
"max",
|
|
1734
|
+
"ultra"
|
|
1735
|
+
]
|
|
1736
|
+
},
|
|
1737
|
+
"maxItems": 8
|
|
1738
|
+
},
|
|
1688
1739
|
"supportedGenerationMethods": {
|
|
1689
1740
|
"type": "array",
|
|
1690
1741
|
"items": {
|
|
@@ -1764,6 +1815,23 @@
|
|
|
1764
1815
|
},
|
|
1765
1816
|
"maxItems": 100
|
|
1766
1817
|
},
|
|
1818
|
+
"reasoningEfforts": {
|
|
1819
|
+
"type": "array",
|
|
1820
|
+
"items": {
|
|
1821
|
+
"type": "string",
|
|
1822
|
+
"enum": [
|
|
1823
|
+
"none",
|
|
1824
|
+
"minimal",
|
|
1825
|
+
"low",
|
|
1826
|
+
"medium",
|
|
1827
|
+
"high",
|
|
1828
|
+
"xhigh",
|
|
1829
|
+
"max",
|
|
1830
|
+
"ultra"
|
|
1831
|
+
]
|
|
1832
|
+
},
|
|
1833
|
+
"maxItems": 8
|
|
1834
|
+
},
|
|
1767
1835
|
"supportedGenerationMethods": {
|
|
1768
1836
|
"type": "array",
|
|
1769
1837
|
"items": {
|
|
@@ -2167,6 +2235,23 @@
|
|
|
2167
2235
|
},
|
|
2168
2236
|
"maxItems": 100
|
|
2169
2237
|
},
|
|
2238
|
+
"reasoningEfforts": {
|
|
2239
|
+
"type": "array",
|
|
2240
|
+
"items": {
|
|
2241
|
+
"type": "string",
|
|
2242
|
+
"enum": [
|
|
2243
|
+
"none",
|
|
2244
|
+
"minimal",
|
|
2245
|
+
"low",
|
|
2246
|
+
"medium",
|
|
2247
|
+
"high",
|
|
2248
|
+
"xhigh",
|
|
2249
|
+
"max",
|
|
2250
|
+
"ultra"
|
|
2251
|
+
]
|
|
2252
|
+
},
|
|
2253
|
+
"maxItems": 8
|
|
2254
|
+
},
|
|
2170
2255
|
"supportedGenerationMethods": {
|
|
2171
2256
|
"type": "array",
|
|
2172
2257
|
"items": {
|
|
@@ -2311,6 +2396,19 @@
|
|
|
2311
2396
|
"maxLength": 300,
|
|
2312
2397
|
"pattern": "^[^\\u0000-\\u001f\\u007f]+$"
|
|
2313
2398
|
},
|
|
2399
|
+
"reasoningEffort": {
|
|
2400
|
+
"type": "string",
|
|
2401
|
+
"enum": [
|
|
2402
|
+
"none",
|
|
2403
|
+
"minimal",
|
|
2404
|
+
"low",
|
|
2405
|
+
"medium",
|
|
2406
|
+
"high",
|
|
2407
|
+
"xhigh",
|
|
2408
|
+
"max",
|
|
2409
|
+
"ultra"
|
|
2410
|
+
]
|
|
2411
|
+
},
|
|
2314
2412
|
"decision": {
|
|
2315
2413
|
"type": "string",
|
|
2316
2414
|
"enum": [
|
|
@@ -2415,6 +2513,23 @@
|
|
|
2415
2513
|
},
|
|
2416
2514
|
"maxItems": 100
|
|
2417
2515
|
},
|
|
2516
|
+
"reasoningEfforts": {
|
|
2517
|
+
"type": "array",
|
|
2518
|
+
"items": {
|
|
2519
|
+
"type": "string",
|
|
2520
|
+
"enum": [
|
|
2521
|
+
"none",
|
|
2522
|
+
"minimal",
|
|
2523
|
+
"low",
|
|
2524
|
+
"medium",
|
|
2525
|
+
"high",
|
|
2526
|
+
"xhigh",
|
|
2527
|
+
"max",
|
|
2528
|
+
"ultra"
|
|
2529
|
+
]
|
|
2530
|
+
},
|
|
2531
|
+
"maxItems": 8
|
|
2532
|
+
},
|
|
2418
2533
|
"supportedGenerationMethods": {
|
|
2419
2534
|
"type": "array",
|
|
2420
2535
|
"items": {
|
|
@@ -2533,6 +2648,23 @@
|
|
|
2533
2648
|
},
|
|
2534
2649
|
"maxItems": 100
|
|
2535
2650
|
},
|
|
2651
|
+
"reasoningEfforts": {
|
|
2652
|
+
"type": "array",
|
|
2653
|
+
"items": {
|
|
2654
|
+
"type": "string",
|
|
2655
|
+
"enum": [
|
|
2656
|
+
"none",
|
|
2657
|
+
"minimal",
|
|
2658
|
+
"low",
|
|
2659
|
+
"medium",
|
|
2660
|
+
"high",
|
|
2661
|
+
"xhigh",
|
|
2662
|
+
"max",
|
|
2663
|
+
"ultra"
|
|
2664
|
+
]
|
|
2665
|
+
},
|
|
2666
|
+
"maxItems": 8
|
|
2667
|
+
},
|
|
2536
2668
|
"supportedGenerationMethods": {
|
|
2537
2669
|
"type": "array",
|
|
2538
2670
|
"items": {
|
|
@@ -2709,6 +2841,23 @@
|
|
|
2709
2841
|
},
|
|
2710
2842
|
"maxItems": 100
|
|
2711
2843
|
},
|
|
2844
|
+
"reasoningEfforts": {
|
|
2845
|
+
"type": "array",
|
|
2846
|
+
"items": {
|
|
2847
|
+
"type": "string",
|
|
2848
|
+
"enum": [
|
|
2849
|
+
"none",
|
|
2850
|
+
"minimal",
|
|
2851
|
+
"low",
|
|
2852
|
+
"medium",
|
|
2853
|
+
"high",
|
|
2854
|
+
"xhigh",
|
|
2855
|
+
"max",
|
|
2856
|
+
"ultra"
|
|
2857
|
+
]
|
|
2858
|
+
},
|
|
2859
|
+
"maxItems": 8
|
|
2860
|
+
},
|
|
2712
2861
|
"supportedGenerationMethods": {
|
|
2713
2862
|
"type": "array",
|
|
2714
2863
|
"items": {
|
|
@@ -2788,6 +2937,23 @@
|
|
|
2788
2937
|
},
|
|
2789
2938
|
"maxItems": 100
|
|
2790
2939
|
},
|
|
2940
|
+
"reasoningEfforts": {
|
|
2941
|
+
"type": "array",
|
|
2942
|
+
"items": {
|
|
2943
|
+
"type": "string",
|
|
2944
|
+
"enum": [
|
|
2945
|
+
"none",
|
|
2946
|
+
"minimal",
|
|
2947
|
+
"low",
|
|
2948
|
+
"medium",
|
|
2949
|
+
"high",
|
|
2950
|
+
"xhigh",
|
|
2951
|
+
"max",
|
|
2952
|
+
"ultra"
|
|
2953
|
+
]
|
|
2954
|
+
},
|
|
2955
|
+
"maxItems": 8
|
|
2956
|
+
},
|
|
2791
2957
|
"supportedGenerationMethods": {
|
|
2792
2958
|
"type": "array",
|
|
2793
2959
|
"items": {
|
|
@@ -3047,6 +3213,23 @@
|
|
|
3047
3213
|
},
|
|
3048
3214
|
"maxItems": 100
|
|
3049
3215
|
},
|
|
3216
|
+
"reasoningEfforts": {
|
|
3217
|
+
"type": "array",
|
|
3218
|
+
"items": {
|
|
3219
|
+
"type": "string",
|
|
3220
|
+
"enum": [
|
|
3221
|
+
"none",
|
|
3222
|
+
"minimal",
|
|
3223
|
+
"low",
|
|
3224
|
+
"medium",
|
|
3225
|
+
"high",
|
|
3226
|
+
"xhigh",
|
|
3227
|
+
"max",
|
|
3228
|
+
"ultra"
|
|
3229
|
+
]
|
|
3230
|
+
},
|
|
3231
|
+
"maxItems": 8
|
|
3232
|
+
},
|
|
3050
3233
|
"supportedGenerationMethods": {
|
|
3051
3234
|
"type": "array",
|
|
3052
3235
|
"items": {
|
|
@@ -3298,6 +3481,19 @@
|
|
|
3298
3481
|
"maxLength": 300,
|
|
3299
3482
|
"pattern": "^[^\\u0000-\\u001f\\u007f]+$"
|
|
3300
3483
|
},
|
|
3484
|
+
"reasoningEffort": {
|
|
3485
|
+
"type": "string",
|
|
3486
|
+
"enum": [
|
|
3487
|
+
"none",
|
|
3488
|
+
"minimal",
|
|
3489
|
+
"low",
|
|
3490
|
+
"medium",
|
|
3491
|
+
"high",
|
|
3492
|
+
"xhigh",
|
|
3493
|
+
"max",
|
|
3494
|
+
"ultra"
|
|
3495
|
+
]
|
|
3496
|
+
},
|
|
3301
3497
|
"decision": {
|
|
3302
3498
|
"type": "string",
|
|
3303
3499
|
"enum": [
|
|
@@ -3568,6 +3764,19 @@
|
|
|
3568
3764
|
"maxLength": 300,
|
|
3569
3765
|
"pattern": "^[^\\u0000-\\u001f\\u007f]+$"
|
|
3570
3766
|
},
|
|
3767
|
+
"reasoningEffort": {
|
|
3768
|
+
"type": "string",
|
|
3769
|
+
"enum": [
|
|
3770
|
+
"none",
|
|
3771
|
+
"minimal",
|
|
3772
|
+
"low",
|
|
3773
|
+
"medium",
|
|
3774
|
+
"high",
|
|
3775
|
+
"xhigh",
|
|
3776
|
+
"max",
|
|
3777
|
+
"ultra"
|
|
3778
|
+
]
|
|
3779
|
+
},
|
|
3571
3780
|
"decision": {
|
|
3572
3781
|
"type": "string",
|
|
3573
3782
|
"enum": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hasna/switcher",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Universal provider and model switcher for coding harnesses with an API, SDK and self-hosted storage",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -59,7 +59,9 @@
|
|
|
59
59
|
"test:native-aider": "bun scripts/test-native-aider.ts",
|
|
60
60
|
"test:native-opencode-legacy": "bun scripts/test-native-opencode-legacy.ts",
|
|
61
61
|
"test:native-kilo": "bun scripts/test-native-kilo.ts",
|
|
62
|
-
"test:native-kilo-lifecycle": "bun scripts/test-native-kilo-lifecycle.ts"
|
|
62
|
+
"test:native-kilo-lifecycle": "bun scripts/test-native-kilo-lifecycle.ts",
|
|
63
|
+
"test:native-chatgpt-runtime": "bun scripts/test-native-chatgpt-runtime.ts",
|
|
64
|
+
"test:native-chatgpt-tools": "bun scripts/test-native-chatgpt-tools.ts"
|
|
63
65
|
},
|
|
64
66
|
"devDependencies": {
|
|
65
67
|
"@types/bun": "1.3.14",
|
|
@@ -76,7 +78,7 @@
|
|
|
76
78
|
},
|
|
77
79
|
"repository": {
|
|
78
80
|
"type": "git",
|
|
79
|
-
"url": "
|
|
81
|
+
"url": "https://github.com/hasna/apps.git",
|
|
80
82
|
"directory": "apps/switcher"
|
|
81
83
|
},
|
|
82
84
|
"homepage": "https://github.com/hasna/apps/tree/main/apps/switcher",
|