2020117-agent 0.6.13 → 0.6.15

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.
@@ -13,7 +13,12 @@ export class HttpProcessor {
13
13
  this.url = url;
14
14
  }
15
15
  get name() {
16
- return `http:${this.url}`;
16
+ try {
17
+ return new URL(this.url).host;
18
+ }
19
+ catch {
20
+ return this.url;
21
+ }
17
22
  }
18
23
  async verify() {
19
24
  try {
package/dist/agent.js CHANGED
@@ -634,8 +634,9 @@ async function handleDvmRequest(label, event) {
634
634
  if (LIGHTNING_ADDRESS) {
635
635
  resultTags.push(['lightning_address', LIGHTNING_ADDRESS]);
636
636
  }
637
- if (state.processor?.name) {
638
- resultTags.push(['model', state.processor.name]);
637
+ const modelLabel = process.env.OLLAMA_MODEL || state.processor?.name;
638
+ if (modelLabel) {
639
+ resultTags.push(['model', modelLabel]);
639
640
  }
640
641
  const resultEvent = signEvent({
641
642
  kind: resultKind,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "2020117-agent",
3
- "version": "0.6.13",
3
+ "version": "0.6.15",
4
4
  "description": "2020117 agent runtime — Nostr-native relay subscription + Hyperswarm P2P + Lightning payments",
5
5
  "type": "module",
6
6
  "bin": {