@hasna/switcher 0.1.4 → 0.1.6
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 +11 -0
- package/dist/catalog.d.ts +1 -0
- package/dist/claude-context.d.ts +5 -0
- package/dist/cli/index.js +542 -218
- package/dist/domain.d.ts +103 -1
- package/dist/generated/api.d.ts +47 -0
- package/dist/index.js +13 -2
- package/dist/mcp/index.js +8 -2
- package/dist/presets.d.ts +14 -0
- package/dist/provider-error.d.ts +2 -0
- package/dist/provider-stream.d.ts +17 -0
- package/dist/sdk.d.ts +74 -0
- package/dist/sdk.js +13 -2
- package/dist/serve/index.js +311 -20
- package/openapi.json +268 -2
- package/package.json +1 -1
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.1.
|
|
5
|
+
"version": "0.1.6",
|
|
6
6
|
"description": "Authenticated provider/profile/catalog control plane. Launches run locally; the API never returns provider credentials."
|
|
7
7
|
},
|
|
8
8
|
"security": [
|
|
@@ -1403,6 +1403,10 @@
|
|
|
1403
1403
|
"available": {
|
|
1404
1404
|
"type": "boolean"
|
|
1405
1405
|
},
|
|
1406
|
+
"expiresOn": {
|
|
1407
|
+
"type": "string",
|
|
1408
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
|
|
1409
|
+
},
|
|
1406
1410
|
"contextWindow": {
|
|
1407
1411
|
"type": "integer",
|
|
1408
1412
|
"exclusiveMinimum": true,
|
|
@@ -1455,6 +1459,84 @@
|
|
|
1455
1459
|
},
|
|
1456
1460
|
"maxItems": 10000,
|
|
1457
1461
|
"default": []
|
|
1462
|
+
},
|
|
1463
|
+
"additionalModels": {
|
|
1464
|
+
"type": "array",
|
|
1465
|
+
"items": {
|
|
1466
|
+
"type": "object",
|
|
1467
|
+
"properties": {
|
|
1468
|
+
"id": {
|
|
1469
|
+
"type": "string",
|
|
1470
|
+
"minLength": 1,
|
|
1471
|
+
"maxLength": 300
|
|
1472
|
+
},
|
|
1473
|
+
"name": {
|
|
1474
|
+
"type": "string",
|
|
1475
|
+
"minLength": 1,
|
|
1476
|
+
"maxLength": 200
|
|
1477
|
+
},
|
|
1478
|
+
"description": {
|
|
1479
|
+
"type": "string",
|
|
1480
|
+
"maxLength": 8000
|
|
1481
|
+
},
|
|
1482
|
+
"available": {
|
|
1483
|
+
"type": "boolean"
|
|
1484
|
+
},
|
|
1485
|
+
"expiresOn": {
|
|
1486
|
+
"type": "string",
|
|
1487
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
|
|
1488
|
+
},
|
|
1489
|
+
"contextWindow": {
|
|
1490
|
+
"type": "integer",
|
|
1491
|
+
"exclusiveMinimum": true,
|
|
1492
|
+
"minimum": 0
|
|
1493
|
+
},
|
|
1494
|
+
"maxOutputTokens": {
|
|
1495
|
+
"type": "integer",
|
|
1496
|
+
"exclusiveMinimum": true,
|
|
1497
|
+
"minimum": 0
|
|
1498
|
+
},
|
|
1499
|
+
"inputModalities": {
|
|
1500
|
+
"type": "array",
|
|
1501
|
+
"items": {
|
|
1502
|
+
"type": "string",
|
|
1503
|
+
"maxLength": 50
|
|
1504
|
+
},
|
|
1505
|
+
"maxItems": 20
|
|
1506
|
+
},
|
|
1507
|
+
"outputModalities": {
|
|
1508
|
+
"type": "array",
|
|
1509
|
+
"items": {
|
|
1510
|
+
"type": "string",
|
|
1511
|
+
"maxLength": 50
|
|
1512
|
+
},
|
|
1513
|
+
"maxItems": 20
|
|
1514
|
+
},
|
|
1515
|
+
"supportedParameters": {
|
|
1516
|
+
"type": "array",
|
|
1517
|
+
"items": {
|
|
1518
|
+
"type": "string",
|
|
1519
|
+
"maxLength": 100
|
|
1520
|
+
},
|
|
1521
|
+
"maxItems": 100
|
|
1522
|
+
},
|
|
1523
|
+
"supportedGenerationMethods": {
|
|
1524
|
+
"type": "array",
|
|
1525
|
+
"items": {
|
|
1526
|
+
"type": "string",
|
|
1527
|
+
"minLength": 1,
|
|
1528
|
+
"maxLength": 100
|
|
1529
|
+
},
|
|
1530
|
+
"maxItems": 100
|
|
1531
|
+
}
|
|
1532
|
+
},
|
|
1533
|
+
"required": [
|
|
1534
|
+
"id",
|
|
1535
|
+
"name"
|
|
1536
|
+
],
|
|
1537
|
+
"additionalProperties": false
|
|
1538
|
+
},
|
|
1539
|
+
"maxItems": 10000
|
|
1458
1540
|
}
|
|
1459
1541
|
},
|
|
1460
1542
|
"required": [
|
|
@@ -1565,6 +1647,10 @@
|
|
|
1565
1647
|
"available": {
|
|
1566
1648
|
"type": "boolean"
|
|
1567
1649
|
},
|
|
1650
|
+
"expiresOn": {
|
|
1651
|
+
"type": "string",
|
|
1652
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
|
|
1653
|
+
},
|
|
1568
1654
|
"contextWindow": {
|
|
1569
1655
|
"type": "integer",
|
|
1570
1656
|
"exclusiveMinimum": true,
|
|
@@ -1618,6 +1704,84 @@
|
|
|
1618
1704
|
"maxItems": 10000,
|
|
1619
1705
|
"default": []
|
|
1620
1706
|
},
|
|
1707
|
+
"additionalModels": {
|
|
1708
|
+
"type": "array",
|
|
1709
|
+
"items": {
|
|
1710
|
+
"type": "object",
|
|
1711
|
+
"properties": {
|
|
1712
|
+
"id": {
|
|
1713
|
+
"type": "string",
|
|
1714
|
+
"minLength": 1,
|
|
1715
|
+
"maxLength": 300
|
|
1716
|
+
},
|
|
1717
|
+
"name": {
|
|
1718
|
+
"type": "string",
|
|
1719
|
+
"minLength": 1,
|
|
1720
|
+
"maxLength": 200
|
|
1721
|
+
},
|
|
1722
|
+
"description": {
|
|
1723
|
+
"type": "string",
|
|
1724
|
+
"maxLength": 8000
|
|
1725
|
+
},
|
|
1726
|
+
"available": {
|
|
1727
|
+
"type": "boolean"
|
|
1728
|
+
},
|
|
1729
|
+
"expiresOn": {
|
|
1730
|
+
"type": "string",
|
|
1731
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
|
|
1732
|
+
},
|
|
1733
|
+
"contextWindow": {
|
|
1734
|
+
"type": "integer",
|
|
1735
|
+
"exclusiveMinimum": true,
|
|
1736
|
+
"minimum": 0
|
|
1737
|
+
},
|
|
1738
|
+
"maxOutputTokens": {
|
|
1739
|
+
"type": "integer",
|
|
1740
|
+
"exclusiveMinimum": true,
|
|
1741
|
+
"minimum": 0
|
|
1742
|
+
},
|
|
1743
|
+
"inputModalities": {
|
|
1744
|
+
"type": "array",
|
|
1745
|
+
"items": {
|
|
1746
|
+
"type": "string",
|
|
1747
|
+
"maxLength": 50
|
|
1748
|
+
},
|
|
1749
|
+
"maxItems": 20
|
|
1750
|
+
},
|
|
1751
|
+
"outputModalities": {
|
|
1752
|
+
"type": "array",
|
|
1753
|
+
"items": {
|
|
1754
|
+
"type": "string",
|
|
1755
|
+
"maxLength": 50
|
|
1756
|
+
},
|
|
1757
|
+
"maxItems": 20
|
|
1758
|
+
},
|
|
1759
|
+
"supportedParameters": {
|
|
1760
|
+
"type": "array",
|
|
1761
|
+
"items": {
|
|
1762
|
+
"type": "string",
|
|
1763
|
+
"maxLength": 100
|
|
1764
|
+
},
|
|
1765
|
+
"maxItems": 100
|
|
1766
|
+
},
|
|
1767
|
+
"supportedGenerationMethods": {
|
|
1768
|
+
"type": "array",
|
|
1769
|
+
"items": {
|
|
1770
|
+
"type": "string",
|
|
1771
|
+
"minLength": 1,
|
|
1772
|
+
"maxLength": 100
|
|
1773
|
+
},
|
|
1774
|
+
"maxItems": 100
|
|
1775
|
+
}
|
|
1776
|
+
},
|
|
1777
|
+
"required": [
|
|
1778
|
+
"id",
|
|
1779
|
+
"name"
|
|
1780
|
+
],
|
|
1781
|
+
"additionalProperties": false
|
|
1782
|
+
},
|
|
1783
|
+
"maxItems": 10000
|
|
1784
|
+
},
|
|
1621
1785
|
"version": {
|
|
1622
1786
|
"type": "integer",
|
|
1623
1787
|
"exclusiveMinimum": true,
|
|
@@ -1965,6 +2129,10 @@
|
|
|
1965
2129
|
"available": {
|
|
1966
2130
|
"type": "boolean"
|
|
1967
2131
|
},
|
|
2132
|
+
"expiresOn": {
|
|
2133
|
+
"type": "string",
|
|
2134
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
|
|
2135
|
+
},
|
|
1968
2136
|
"contextWindow": {
|
|
1969
2137
|
"type": "integer",
|
|
1970
2138
|
"exclusiveMinimum": true,
|
|
@@ -2209,6 +2377,10 @@
|
|
|
2209
2377
|
"available": {
|
|
2210
2378
|
"type": "boolean"
|
|
2211
2379
|
},
|
|
2380
|
+
"expiresOn": {
|
|
2381
|
+
"type": "string",
|
|
2382
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
|
|
2383
|
+
},
|
|
2212
2384
|
"contextWindow": {
|
|
2213
2385
|
"type": "integer",
|
|
2214
2386
|
"exclusiveMinimum": true,
|
|
@@ -2254,12 +2426,16 @@
|
|
|
2254
2426
|
},
|
|
2255
2427
|
"codingEligible": {
|
|
2256
2428
|
"type": "boolean"
|
|
2429
|
+
},
|
|
2430
|
+
"expired": {
|
|
2431
|
+
"type": "boolean"
|
|
2257
2432
|
}
|
|
2258
2433
|
},
|
|
2259
2434
|
"required": [
|
|
2260
2435
|
"id",
|
|
2261
2436
|
"name",
|
|
2262
|
-
"codingEligible"
|
|
2437
|
+
"codingEligible",
|
|
2438
|
+
"expired"
|
|
2263
2439
|
],
|
|
2264
2440
|
"additionalProperties": false
|
|
2265
2441
|
}
|
|
@@ -2319,6 +2495,10 @@
|
|
|
2319
2495
|
"available": {
|
|
2320
2496
|
"type": "boolean"
|
|
2321
2497
|
},
|
|
2498
|
+
"expiresOn": {
|
|
2499
|
+
"type": "string",
|
|
2500
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
|
|
2501
|
+
},
|
|
2322
2502
|
"contextWindow": {
|
|
2323
2503
|
"type": "integer",
|
|
2324
2504
|
"exclusiveMinimum": true,
|
|
@@ -2491,6 +2671,10 @@
|
|
|
2491
2671
|
"available": {
|
|
2492
2672
|
"type": "boolean"
|
|
2493
2673
|
},
|
|
2674
|
+
"expiresOn": {
|
|
2675
|
+
"type": "string",
|
|
2676
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
|
|
2677
|
+
},
|
|
2494
2678
|
"contextWindow": {
|
|
2495
2679
|
"type": "integer",
|
|
2496
2680
|
"exclusiveMinimum": true,
|
|
@@ -2544,6 +2728,84 @@
|
|
|
2544
2728
|
"maxItems": 10000,
|
|
2545
2729
|
"default": []
|
|
2546
2730
|
},
|
|
2731
|
+
"additionalModels": {
|
|
2732
|
+
"type": "array",
|
|
2733
|
+
"items": {
|
|
2734
|
+
"type": "object",
|
|
2735
|
+
"properties": {
|
|
2736
|
+
"id": {
|
|
2737
|
+
"type": "string",
|
|
2738
|
+
"minLength": 1,
|
|
2739
|
+
"maxLength": 300
|
|
2740
|
+
},
|
|
2741
|
+
"name": {
|
|
2742
|
+
"type": "string",
|
|
2743
|
+
"minLength": 1,
|
|
2744
|
+
"maxLength": 200
|
|
2745
|
+
},
|
|
2746
|
+
"description": {
|
|
2747
|
+
"type": "string",
|
|
2748
|
+
"maxLength": 8000
|
|
2749
|
+
},
|
|
2750
|
+
"available": {
|
|
2751
|
+
"type": "boolean"
|
|
2752
|
+
},
|
|
2753
|
+
"expiresOn": {
|
|
2754
|
+
"type": "string",
|
|
2755
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
|
|
2756
|
+
},
|
|
2757
|
+
"contextWindow": {
|
|
2758
|
+
"type": "integer",
|
|
2759
|
+
"exclusiveMinimum": true,
|
|
2760
|
+
"minimum": 0
|
|
2761
|
+
},
|
|
2762
|
+
"maxOutputTokens": {
|
|
2763
|
+
"type": "integer",
|
|
2764
|
+
"exclusiveMinimum": true,
|
|
2765
|
+
"minimum": 0
|
|
2766
|
+
},
|
|
2767
|
+
"inputModalities": {
|
|
2768
|
+
"type": "array",
|
|
2769
|
+
"items": {
|
|
2770
|
+
"type": "string",
|
|
2771
|
+
"maxLength": 50
|
|
2772
|
+
},
|
|
2773
|
+
"maxItems": 20
|
|
2774
|
+
},
|
|
2775
|
+
"outputModalities": {
|
|
2776
|
+
"type": "array",
|
|
2777
|
+
"items": {
|
|
2778
|
+
"type": "string",
|
|
2779
|
+
"maxLength": 50
|
|
2780
|
+
},
|
|
2781
|
+
"maxItems": 20
|
|
2782
|
+
},
|
|
2783
|
+
"supportedParameters": {
|
|
2784
|
+
"type": "array",
|
|
2785
|
+
"items": {
|
|
2786
|
+
"type": "string",
|
|
2787
|
+
"maxLength": 100
|
|
2788
|
+
},
|
|
2789
|
+
"maxItems": 100
|
|
2790
|
+
},
|
|
2791
|
+
"supportedGenerationMethods": {
|
|
2792
|
+
"type": "array",
|
|
2793
|
+
"items": {
|
|
2794
|
+
"type": "string",
|
|
2795
|
+
"minLength": 1,
|
|
2796
|
+
"maxLength": 100
|
|
2797
|
+
},
|
|
2798
|
+
"maxItems": 100
|
|
2799
|
+
}
|
|
2800
|
+
},
|
|
2801
|
+
"required": [
|
|
2802
|
+
"id",
|
|
2803
|
+
"name"
|
|
2804
|
+
],
|
|
2805
|
+
"additionalProperties": false
|
|
2806
|
+
},
|
|
2807
|
+
"maxItems": 10000
|
|
2808
|
+
},
|
|
2547
2809
|
"version": {
|
|
2548
2810
|
"type": "integer",
|
|
2549
2811
|
"exclusiveMinimum": true,
|
|
@@ -2747,6 +3009,10 @@
|
|
|
2747
3009
|
"available": {
|
|
2748
3010
|
"type": "boolean"
|
|
2749
3011
|
},
|
|
3012
|
+
"expiresOn": {
|
|
3013
|
+
"type": "string",
|
|
3014
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
|
|
3015
|
+
},
|
|
2750
3016
|
"contextWindow": {
|
|
2751
3017
|
"type": "integer",
|
|
2752
3018
|
"exclusiveMinimum": true,
|
package/package.json
CHANGED