@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 CHANGED
@@ -151,9 +151,9 @@ Configuration is stored in `~/.agentspan/config.json`. Environment variables tak
151
151
 
152
152
  | Variable | Description |
153
153
  |----------|-------------|
154
- | `AGENT_SERVER_URL` | Server URL (default: `http://localhost:8080`) |
155
- | `CONDUCTOR_AUTH_KEY` | Auth key |
156
- | `CONDUCTOR_AUTH_SECRET` | Auth secret |
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("AGENT_SERVER_URL"); url != "" {
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("CONDUCTOR_AUTH_KEY"); key != "" {
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("CONDUCTOR_AUTH_SECRET"); secret != "" {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentspan/agentspan",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "CLI for AgentSpan - Build, run, and manage AI agents",
5
5
  "main": "index.js",
6
6
  "bin": {
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file