@hasna/switcher 0.1.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/package.json ADDED
@@ -0,0 +1,70 @@
1
+ {
2
+ "name": "@hasna/switcher",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "description": "Universal provider and model switcher for coding harnesses with an API, SDK and self-hosted storage",
6
+ "license": "Apache-2.0",
7
+ "bin": {
8
+ "switcher": "dist/cli/index.js",
9
+ "switcher-mcp": "dist/mcp/index.js",
10
+ "switcher-serve": "dist/serve/index.js"
11
+ },
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/index.d.ts",
15
+ "import": "./dist/index.js"
16
+ },
17
+ "./sdk": {
18
+ "types": "./dist/sdk.d.ts",
19
+ "import": "./dist/sdk.js"
20
+ }
21
+ },
22
+ "files": [
23
+ "dist",
24
+ "hasna.contract.json",
25
+ "openapi.json",
26
+ "docker-compose.yml",
27
+ "Dockerfile",
28
+ "README.md",
29
+ "LICENSE"
30
+ ],
31
+ "publishConfig": {
32
+ "registry": "https://registry.npmjs.org",
33
+ "access": "public"
34
+ },
35
+ "engines": {
36
+ "bun": ">=1.3.14"
37
+ },
38
+ "scripts": {
39
+ "build": "bun scripts/build.ts",
40
+ "generate": "bun scripts/generate.ts",
41
+ "check:generated": "bun scripts/generate.ts --check",
42
+ "typecheck": "tsc --noEmit",
43
+ "test": "bun test",
44
+ "contract:check": "bun ./node_modules/@hasna/contracts/dist/cli/contracts-cli.js repo-conformance .",
45
+ "verify": "bun run check:generated && bun run typecheck && bun run test && bun run build && bun run contract:check",
46
+ "test:postgres": "bun scripts/pg-test-gate.mjs",
47
+ "scan:artifact": "bun scripts/artifact-scan.ts",
48
+ "prepack": "bun run verify && bun run scan:artifact"
49
+ },
50
+ "devDependencies": {
51
+ "@types/bun": "1.3.14",
52
+ "typescript": "5.6.3",
53
+ "openapi-typescript": "7.13.0",
54
+ "zod-to-json-schema": "3.25.2"
55
+ },
56
+ "dependencies": {
57
+ "zod": "3.25.76",
58
+ "@modelcontextprotocol/sdk": "^1.29.0",
59
+ "@hasna/contracts": "1.0.1"
60
+ },
61
+ "repository": {
62
+ "type": "git",
63
+ "url": "git+https://github.com/hasna/apps.git",
64
+ "directory": "apps/switcher"
65
+ },
66
+ "homepage": "https://github.com/hasna/apps/tree/main/apps/switcher",
67
+ "bugs": {
68
+ "url": "https://github.com/hasna/apps/issues"
69
+ }
70
+ }