@tenex-chat/backend 0.9.2 → 0.9.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/dist/src/index.js
CHANGED
|
@@ -5689,10 +5689,6 @@ class AgentStorage {
|
|
|
5689
5689
|
const slugEntry = this.index.bySlug[slug];
|
|
5690
5690
|
if (!slugEntry)
|
|
5691
5691
|
return null;
|
|
5692
|
-
logger.warn("Using deprecated getAgentBySlug() - consider using getAgentBySlugForProject()", {
|
|
5693
|
-
slug,
|
|
5694
|
-
pubkey: slugEntry.pubkey.substring(0, 8)
|
|
5695
|
-
});
|
|
5696
5692
|
return this.loadAgent(slugEntry.pubkey);
|
|
5697
5693
|
}
|
|
5698
5694
|
async getAgentBySlugForProject(slug, projectDTag) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tenex-chat/backend",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.4",
|
|
4
4
|
"description": "TENEX Command Line Interface",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
"bin": {
|
|
14
|
-
"backend": "./dist/backend-wrapper.cjs"
|
|
14
|
+
"tenex-backend": "./dist/tenex-backend-wrapper.cjs"
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
17
|
"dist/**/*.js",
|
|
@@ -658,12 +658,8 @@ export class AgentStorage {
|
|
|
658
658
|
|
|
659
659
|
/**
|
|
660
660
|
* Get agent by slug (uses index for O(1) lookup).
|
|
661
|
-
*
|
|
662
|
-
*
|
|
663
|
-
* This method returns the LAST agent saved with this slug, which may not be the
|
|
664
|
-
* correct agent when multiple agents use the same slug across different projects.
|
|
665
|
-
*
|
|
666
|
-
* @deprecated Use getAgentBySlugForProject(slug, projectDTag) instead
|
|
661
|
+
* Returns the agent matching this slug regardless of project.
|
|
662
|
+
* Use getAgentBySlugForProject() when you need project-scoped lookups.
|
|
667
663
|
*/
|
|
668
664
|
async getAgentBySlug(slug: string): Promise<StoredAgent | null> {
|
|
669
665
|
if (!this.index) await this.loadIndex();
|
|
@@ -672,11 +668,6 @@ export class AgentStorage {
|
|
|
672
668
|
const slugEntry = this.index.bySlug[slug];
|
|
673
669
|
if (!slugEntry) return null;
|
|
674
670
|
|
|
675
|
-
logger.warn("Using deprecated getAgentBySlug() - consider using getAgentBySlugForProject()", {
|
|
676
|
-
slug,
|
|
677
|
-
pubkey: slugEntry.pubkey.substring(0, 8),
|
|
678
|
-
});
|
|
679
|
-
|
|
680
671
|
return this.loadAgent(slugEntry.pubkey);
|
|
681
672
|
}
|
|
682
673
|
|
|
File without changes
|