@agentspan/agentspan 0.0.3 → 0.0.4
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/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/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
|