@agentspan/agentspan 0.0.3 → 0.0.5
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 +3 -3
- package/cmd/server.go +15 -0
- package/config/config.go +10 -4
- package/package.json +1 -1
- package/dist/agentspan_darwin_amd64 +0 -0
- package/dist/agentspan_darwin_arm64 +0 -0
- package/dist/agentspan_linux_amd64 +0 -0
- package/dist/agentspan_linux_arm64 +0 -0
- package/dist/agentspan_windows_amd64.exe +0 -0
- package/dist/agentspan_windows_arm64.exe +0 -0
package/README.md
CHANGED
|
@@ -151,9 +151,9 @@ Configuration is stored in `~/.agentspan/config.json`. Environment variables tak
|
|
|
151
151
|
|
|
152
152
|
| Variable | Description |
|
|
153
153
|
|----------|-------------|
|
|
154
|
-
| `
|
|
155
|
-
| `
|
|
156
|
-
| `
|
|
154
|
+
| `AGENTSPAN_SERVER_URL` | Server URL (default: `http://localhost:8080`) |
|
|
155
|
+
| `AGENTSPAN_AUTH_KEY` | Auth key |
|
|
156
|
+
| `AGENTSPAN_AUTH_SECRET` | Auth secret |
|
|
157
157
|
|
|
158
158
|
### Version
|
|
159
159
|
|
package/cmd/server.go
CHANGED
|
@@ -136,6 +136,21 @@ func runServerStart(cmd *cobra.Command, args []string) error {
|
|
|
136
136
|
|
|
137
137
|
checkAIProviderKeys()
|
|
138
138
|
|
|
139
|
+
// Validate JDK before launching java
|
|
140
|
+
javaOk, javaVersion := checkJava()
|
|
141
|
+
if !javaOk {
|
|
142
|
+
if javaVersion != "" {
|
|
143
|
+
return fmt.Errorf(
|
|
144
|
+
"Java %s detected but Java 21+ is required.\n"+
|
|
145
|
+
" Install Java 21+: https://adoptium.net/\n"+
|
|
146
|
+
" Run 'agentspan doctor' for full diagnostics.", javaVersion)
|
|
147
|
+
}
|
|
148
|
+
return fmt.Errorf(
|
|
149
|
+
"Java is not installed. The Agentspan server requires Java 21+.\n"+
|
|
150
|
+
" Install: https://adoptium.net/\n"+
|
|
151
|
+
" Run 'agentspan doctor' for full diagnostics.")
|
|
152
|
+
}
|
|
153
|
+
|
|
139
154
|
bold := color.New(color.Bold)
|
|
140
155
|
bold.Printf("Starting agent runtime on port %s...\n", serverPort)
|
|
141
156
|
|
package/config/config.go
CHANGED
|
@@ -33,14 +33,20 @@ func configPath() string {
|
|
|
33
33
|
func Load() *Config {
|
|
34
34
|
cfg := DefaultConfig()
|
|
35
35
|
|
|
36
|
-
// Env vars override
|
|
37
|
-
if url := os.Getenv("
|
|
36
|
+
// Env vars override (AGENTSPAN_* primary, CONDUCTOR_* fallback)
|
|
37
|
+
if url := os.Getenv("AGENTSPAN_SERVER_URL"); url != "" {
|
|
38
|
+
cfg.ServerURL = url
|
|
39
|
+
} else if url := os.Getenv("AGENT_SERVER_URL"); url != "" {
|
|
38
40
|
cfg.ServerURL = url
|
|
39
41
|
}
|
|
40
|
-
if key := os.Getenv("
|
|
42
|
+
if key := os.Getenv("AGENTSPAN_AUTH_KEY"); key != "" {
|
|
43
|
+
cfg.AuthKey = key
|
|
44
|
+
} else if key := os.Getenv("CONDUCTOR_AUTH_KEY"); key != "" {
|
|
41
45
|
cfg.AuthKey = key
|
|
42
46
|
}
|
|
43
|
-
if secret := os.Getenv("
|
|
47
|
+
if secret := os.Getenv("AGENTSPAN_AUTH_SECRET"); secret != "" {
|
|
48
|
+
cfg.AuthSecret = secret
|
|
49
|
+
} else if secret := os.Getenv("CONDUCTOR_AUTH_SECRET"); secret != "" {
|
|
44
50
|
cfg.AuthSecret = secret
|
|
45
51
|
}
|
|
46
52
|
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|