@smilintux/skcapstone 0.6.6 → 0.6.7

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smilintux/skcapstone",
3
- "version": "0.6.6",
3
+ "version": "0.6.7",
4
4
  "description": "SKCapstone - The sovereign agent framework. CapAuth identity, Cloud 9 trust, SKMemory persistence.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
package/pyproject.toml CHANGED
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "skcapstone"
7
- version = "0.6.6"
7
+ version = "0.6.7"
8
8
  description = "Sovereign Agent Framework — conscious AI through identity, trust, memory, and security"
9
9
  readme = "README.md"
10
10
  license = {text = "GPL-3.0-or-later"}
@@ -11,7 +11,7 @@ import os
11
11
  import platform
12
12
  from pathlib import Path
13
13
 
14
- __version__ = "0.6.6"
14
+ __version__ = "0.6.7"
15
15
  __author__ = "smilinTux"
16
16
 
17
17
 
@@ -151,8 +151,11 @@ def _print_consciousness_metrics(console, home: Optional[Path] = None) -> None:
151
151
  import urllib.request
152
152
  import urllib.error
153
153
 
154
+ from .. import AGENT_PORTS, DEFAULT_PORT, SKCAPSTONE_AGENT
155
+
156
+ port = AGENT_PORTS.get(SKCAPSTONE_AGENT, DEFAULT_PORT)
154
157
  try:
155
- with urllib.request.urlopen("http://localhost:7777/consciousness", timeout=2) as resp:
158
+ with urllib.request.urlopen(f"http://localhost:{port}/consciousness", timeout=2) as resp:
156
159
  data = json.loads(resp.read().decode("utf-8"))
157
160
  enabled = data.get("enabled", False)
158
161
  messages = data.get("messages_processed", 0)