@hashgraphonline/standards-agent-kit 0.0.28-canary.2 → 0.0.30-canary.0
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/cjs/src/state/open-convai-state.d.ts +1 -0
- package/dist/cjs/standards-agent-kit.cjs +1 -1
- package/dist/cjs/standards-agent-kit.cjs.map +1 -1
- package/dist/es/src/state/open-convai-state.d.ts +1 -0
- package/dist/es/standards-agent-kit.es17.js +2 -1
- package/dist/es/standards-agent-kit.es17.js.map +1 -1
- package/dist/es/standards-agent-kit.es2.js +3 -1
- package/dist/es/standards-agent-kit.es2.js.map +1 -1
- package/dist/es/standards-agent-kit.es3.js +3 -1
- package/dist/es/standards-agent-kit.es3.js.map +1 -1
- package/dist/umd/src/state/open-convai-state.d.ts +1 -0
- package/dist/umd/standards-agent-kit.umd.js +7 -7
- package/dist/umd/standards-agent-kit.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/hcs10/HCS10Client.ts +2 -0
- package/src/init.ts +2 -0
- package/src/plugins/openconvai/index.ts +0 -2
- package/src/state/open-convai-state.ts +3 -1
- package/src/utils/connectionUtils.ts +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hashgraphonline/standards-agent-kit",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.30-canary.0",
|
|
4
4
|
"description": "A modular SDK for building on-chain autonomous agents using Hashgraph Online Standards, including HCS-10 for agent discovery and communication.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/cjs/standards-agent-kit.cjs",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
},
|
|
97
97
|
"dependencies": {
|
|
98
98
|
"@hashgraph/sdk": "^2.64.5",
|
|
99
|
-
"@hashgraphonline/standards-sdk": "^0.0.
|
|
99
|
+
"@hashgraphonline/standards-sdk": "^0.0.114",
|
|
100
100
|
"@langchain/community": "^0.3.44",
|
|
101
101
|
"@langchain/core": "^0.3.57",
|
|
102
102
|
"@langchain/openai": "^0.5.11",
|
package/src/hcs10/HCS10Client.ts
CHANGED
|
@@ -77,8 +77,10 @@ export class HCS10Client {
|
|
|
77
77
|
});
|
|
78
78
|
this.guardedRegistryBaseUrl = options?.registryUrl || '';
|
|
79
79
|
this.useEncryption = options?.useEncryption || false;
|
|
80
|
+
const shouldSilence = process.env.DISABLE_LOGGING === 'true';
|
|
80
81
|
this.logger = new Logger({
|
|
81
82
|
level: options?.logLevel || 'info',
|
|
83
|
+
silent: shouldSilence,
|
|
82
84
|
});
|
|
83
85
|
}
|
|
84
86
|
|
package/src/init.ts
CHANGED
|
@@ -90,8 +90,10 @@ export function initializeHCS10Client(options?: HCS10InitializationOptions): {
|
|
|
90
90
|
);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
+
const shouldSilence = process.env.DISABLE_LOGGING === 'true';
|
|
93
94
|
const logger = Logger.getInstance({
|
|
94
95
|
level: config.logLevel || 'info',
|
|
96
|
+
silent: shouldSilence,
|
|
95
97
|
});
|
|
96
98
|
|
|
97
99
|
const stateManager =
|
|
@@ -36,10 +36,12 @@ export class OpenConvaiState implements IStateManager {
|
|
|
36
36
|
defaultEnvFilePath?: string;
|
|
37
37
|
defaultPrefix?: string;
|
|
38
38
|
baseClient?: HCS10BaseClient;
|
|
39
|
+
disableLogging?: boolean;
|
|
39
40
|
}) {
|
|
40
41
|
this.defaultEnvFilePath = options?.defaultEnvFilePath;
|
|
41
42
|
this.defaultPrefix = options?.defaultPrefix ?? 'TODD';
|
|
42
|
-
|
|
43
|
+
const shouldSilence = options?.disableLogging || process.env.DISABLE_LOGGING === 'true';
|
|
44
|
+
this.logger = new Logger({ module: 'OpenConvaiState', silent: shouldSilence });
|
|
43
45
|
|
|
44
46
|
// Initialize ConnectionsManager immediately if baseClient is provided
|
|
45
47
|
if (options?.baseClient) {
|
|
@@ -14,7 +14,11 @@ export interface ConnectionMap {
|
|
|
14
14
|
confirmedRequestIds: Set<number>;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
const
|
|
17
|
+
const shouldSilence = process.env.DISABLE_LOGGING === 'true';
|
|
18
|
+
const logger = Logger.getInstance({
|
|
19
|
+
module: 'connectionUtils',
|
|
20
|
+
silent: shouldSilence,
|
|
21
|
+
});
|
|
18
22
|
|
|
19
23
|
/**
|
|
20
24
|
* Fetches and processes inbound/outbound messages and profiles
|