Commit Graph

206 Commits

Author SHA1 Message Date
7d9b983f93 Don't strip remote llama-cpp proxy prefix 2025-10-25 16:02:09 +02:00
889df3cb79 Add API key header for remote instances in proxy build 2025-10-25 14:14:39 +02:00
ff719f3ef9 Remove remote instance proxy handling from handlers 2025-10-25 14:07:11 +02:00
6a973fae2d Fix tests 2025-10-25 00:14:42 +02:00
58f8861d17 Switch manager to global app config 2025-10-25 00:14:12 +02:00
eff59a86fd Remove proxy, logger and process init from UnmarshalJSON 2025-10-24 23:41:33 +02:00
174d1772d6 Implement remote proxy handling in instance 2025-10-24 23:16:45 +02:00
a9fb0d613d Validate instance name in openai proxy 2025-10-22 18:55:57 +02:00
3b8bc658e3 Add name validation to backend handlers 2025-10-22 18:50:51 +02:00
c6053f6afd Remove old validation tests 2025-10-22 18:50:38 +02:00
c794e4f98b Move instance name validation to handlers 2025-10-22 18:40:39 +02:00
0f2c14d3ed Validate instance names to prevent injection attacks 2025-10-22 00:02:23 +02:00
7c2c02ab2f Use url escape instead for instance name param 2025-10-21 23:24:27 +02:00
e0289ff42f Add instance name validation for URL safety and corresponding tests 2025-10-21 23:16:20 +02:00
bc025bbe28 Fix instance name validation 2025-10-21 22:57:23 +02:00
c6ebe47511 Fix path validation false positive 2025-10-21 22:47:41 +02:00
9bb106a1ce Remove deprecated operation mutex in instanceManager 2025-10-21 22:38:00 +02:00
bac18b5626 Unexport factory functions 2025-10-21 22:37:10 +02:00
2b51b4a47f Simplify manager tests 2025-10-21 22:30:08 +02:00
c44712e813 Remove redundant instance manager tests 2025-10-21 22:15:12 +02:00
6afe120a0e Implement more manager tests 2025-10-21 22:07:10 +02:00
4d05fcea46 Improve manager tests 2025-10-21 21:39:01 +02:00
7c64ab9cc6 Make StartInstance and StopInstance idempotent 2025-10-21 18:49:49 +02:00
a2d4622486 Refactor instance locking mechanism to use per-instance locks for concurrency 2025-10-20 22:59:31 +02:00
d923732aba Delete unused code 2025-10-20 22:27:22 +02:00
1ae28a0b09 Unexport member struct methods 2025-10-20 22:22:09 +02:00
c537bc48b8 Refactor API path handling in remoteManager to use a constant for base path 2025-10-20 22:00:06 +02:00
ffb4b49c94 Split manager into multiple structs 2025-10-20 21:55:50 +02:00
b25ad48605 Refactor backend options marshaling/unmarshaling 2025-10-19 20:48:05 +02:00
d8e0da9cf8 Refactor backend options to implement common interface and streamline validation 2025-10-19 20:36:57 +02:00
f42f000539 Implement mlx and cllm tests and remove redundant code 2025-10-19 19:45:31 +02:00
72fe780e31 Simplify instance tests 2025-10-19 19:14:32 +02:00
55a9450077 Fix instance tests 2025-10-19 19:08:38 +02:00
72586fc627 Simplify config tests 2025-10-19 19:06:06 +02:00
6a91fe13e0 Fix local node override tests 2025-10-19 18:59:59 +02:00
51a7ac590e Fix preventing local proxy usage for remote instances 2025-10-19 18:55:56 +02:00
82f4f7beed Ensure local node is defined in LoadConfig by adding default config if missing 2025-10-19 18:47:02 +02:00
867380a06d Remove GetBackendSettings method from config 2025-10-19 18:32:05 +02:00
3500971f03 Fix JSON marshaling of backend options by using a pointer 2025-10-19 18:27:22 +02:00
9da2433a7c Refactor instance and manager tests to use BackendOptions structure 2025-10-19 18:07:14 +02:00
55f671c354 Refactor backend options handling and validation 2025-10-19 17:41:08 +02:00
2a7010d0e1 Flatten backends package structure 2025-10-19 15:50:42 +02:00
851c73f058 Add tests for status change callback and options preservation 2025-10-18 13:19:01 +02:00
8ac4b370c9 Unexport struct methods 2025-10-18 11:25:26 +02:00
a7740000d2 Refactor instance creation to initialize logger, proxy, and process only for local instances 2025-10-18 10:39:04 +02:00
b13f8c471d Split off process struct 2025-10-18 10:28:15 +02:00
3f834004a8 Rename NewInstance to New 2025-10-18 00:34:18 +02:00
113b51eda2 Refactor instance node handling to use a map 2025-10-18 00:33:16 +02:00
7bf0809122 Fix test compilation after merge
Update instance tests to use correct type names:
- CreateInstanceOptions -> Options
- InstanceStatus -> Status

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-17 00:13:53 +02:00
a1ffdb02a4 Merge main into refactor/instance-split
Resolved conflicts in:
- pkg/instance/instance.go: Combined remote detection logic from main with refactored structure
- pkg/manager/manager_test.go: Updated manager initialization to include localNodeName parameter
- pkg/manager/remote_ops.go: Removed stripNodesFromOptions function that was deleted in main
- pkg/manager/remote_ops_test.go: Removed file that was deleted in main

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-17 00:10:09 +02:00