@composio/core 0.6.3 → 0.6.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/{BaseProvider-C7yGAyLz.d.mts → BaseProvider-B_7Qy99Q.d.mts} +1950 -40
- package/dist/{BaseProvider-X7JCCvcK.d.cts → BaseProvider-DF03HAz3.d.cts} +1950 -40
- package/dist/{Telemetry-Bn5VseVi.mjs → Telemetry-B3HlLpMT.mjs} +4 -7
- package/dist/{Telemetry-DErMJqj0.cjs → Telemetry-DBe2oppA.cjs} +4 -7
- package/dist/{composio-uGEfnO6v.d.cts → composio-COyITeJf.d.cts} +109 -114
- package/dist/{composio-Ds1Z80p8.d.mts → composio-ClplAPbl.d.mts} +109 -114
- package/dist/index.cjs +275 -25
- package/dist/index.d.cts +4777 -3
- package/dist/index.d.mts +4777 -3
- package/dist/index.mjs +268 -26
- package/dist/models/Files.node.cjs +1 -1
- package/dist/models/Files.node.mjs +1 -1
- package/dist/{types-CMQAtpc_.d.mts → types-BO1Bf2Xz.d.mts} +2 -2
- package/dist/{types-CTXCkF_v.d.cts → types-Bib0jIbg.d.cts} +2 -2
- package/dist/utils/config-defaults/ConfigDefaults.node.d.cts +2 -2
- package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +3 -3
- package/dist/utils/config-defaults/ConfigDefaults.workerd.d.cts +2 -2
- package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +3 -3
- package/dist/utils/modifiers/FileToolModifier.node.d.cts +1 -1
- package/dist/utils/modifiers/FileToolModifier.node.d.mts +1 -1
- package/dist/utils/modifiers/FileToolModifier.workerd.d.cts +1 -1
- package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +1 -1
- package/package.json +2 -2
|
@@ -175,8 +175,7 @@ var TelemetryTransport = class {
|
|
|
175
175
|
timestamp: startTime / 1e3,
|
|
176
176
|
props: {
|
|
177
177
|
fileName: instrumentedClassName,
|
|
178
|
-
method: name
|
|
179
|
-
params: args
|
|
178
|
+
method: name
|
|
180
179
|
},
|
|
181
180
|
metadata: { provider: this.telemetryMetadata?.provider ?? "openai" },
|
|
182
181
|
error: void 0,
|
|
@@ -191,7 +190,7 @@ var TelemetryTransport = class {
|
|
|
191
190
|
error.errorId = getRandomUUID();
|
|
192
191
|
if (telemetryEnabled && startTime !== void 0) {
|
|
193
192
|
const durationMs = Date.now() - startTime;
|
|
194
|
-
await this.prepareAndSendErrorTelemetry(error, instrumentedClassName, name,
|
|
193
|
+
await this.prepareAndSendErrorTelemetry(error, instrumentedClassName, name, startTime, durationMs);
|
|
195
194
|
}
|
|
196
195
|
}
|
|
197
196
|
}
|
|
@@ -220,19 +219,17 @@ var TelemetryTransport = class {
|
|
|
220
219
|
* @param {unknown} error - The error to send.
|
|
221
220
|
* @param {string} instrumentedClassName - The class name of the instrumented class.
|
|
222
221
|
* @param {string} name - The name of the method that threw the error.
|
|
223
|
-
* @param {unknown[]} args - The arguments passed to the method.
|
|
224
222
|
* @param {number} startTime - The start time of the method invocation in milliseconds.
|
|
225
223
|
* @param {number} durationMs - The duration of the method invocation in milliseconds.
|
|
226
224
|
*/
|
|
227
|
-
async prepareAndSendErrorTelemetry(error, instrumentedClassName, name,
|
|
225
|
+
async prepareAndSendErrorTelemetry(error, instrumentedClassName, name, startTime, durationMs) {
|
|
228
226
|
const telemetryPayload = {
|
|
229
227
|
functionName: `${instrumentedClassName}.${name}`,
|
|
230
228
|
durationMs,
|
|
231
229
|
timestamp: startTime / 1e3,
|
|
232
230
|
props: {
|
|
233
231
|
fileName: instrumentedClassName,
|
|
234
|
-
method: name
|
|
235
|
-
params: args
|
|
232
|
+
method: name
|
|
236
233
|
},
|
|
237
234
|
metadata: { provider: this.telemetryMetadata?.provider ?? "openai" },
|
|
238
235
|
source: this.telemetrySource
|
|
@@ -176,8 +176,7 @@ var TelemetryTransport = class {
|
|
|
176
176
|
timestamp: startTime / 1e3,
|
|
177
177
|
props: {
|
|
178
178
|
fileName: instrumentedClassName,
|
|
179
|
-
method: name
|
|
180
|
-
params: args
|
|
179
|
+
method: name
|
|
181
180
|
},
|
|
182
181
|
metadata: { provider: this.telemetryMetadata?.provider ?? "openai" },
|
|
183
182
|
error: void 0,
|
|
@@ -192,7 +191,7 @@ var TelemetryTransport = class {
|
|
|
192
191
|
error.errorId = require_buffer.getRandomUUID();
|
|
193
192
|
if (telemetryEnabled && startTime !== void 0) {
|
|
194
193
|
const durationMs = Date.now() - startTime;
|
|
195
|
-
await this.prepareAndSendErrorTelemetry(error, instrumentedClassName, name,
|
|
194
|
+
await this.prepareAndSendErrorTelemetry(error, instrumentedClassName, name, startTime, durationMs);
|
|
196
195
|
}
|
|
197
196
|
}
|
|
198
197
|
}
|
|
@@ -221,19 +220,17 @@ var TelemetryTransport = class {
|
|
|
221
220
|
* @param {unknown} error - The error to send.
|
|
222
221
|
* @param {string} instrumentedClassName - The class name of the instrumented class.
|
|
223
222
|
* @param {string} name - The name of the method that threw the error.
|
|
224
|
-
* @param {unknown[]} args - The arguments passed to the method.
|
|
225
223
|
* @param {number} startTime - The start time of the method invocation in milliseconds.
|
|
226
224
|
* @param {number} durationMs - The duration of the method invocation in milliseconds.
|
|
227
225
|
*/
|
|
228
|
-
async prepareAndSendErrorTelemetry(error, instrumentedClassName, name,
|
|
226
|
+
async prepareAndSendErrorTelemetry(error, instrumentedClassName, name, startTime, durationMs) {
|
|
229
227
|
const telemetryPayload = {
|
|
230
228
|
functionName: `${instrumentedClassName}.${name}`,
|
|
231
229
|
durationMs,
|
|
232
230
|
timestamp: startTime / 1e3,
|
|
233
231
|
props: {
|
|
234
232
|
fileName: instrumentedClassName,
|
|
235
|
-
method: name
|
|
236
|
-
params: args
|
|
233
|
+
method: name
|
|
237
234
|
},
|
|
238
235
|
metadata: { provider: this.telemetryMetadata?.provider ?? "openai" },
|
|
239
236
|
source: this.telemetrySource
|