@poncho-ai/harness 0.20.4 → 0.20.5
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/.turbo/turbo-build.log +4 -4
- package/CHANGELOG.md +6 -0
- package/dist/index.js +1 -21
- package/package.json +1 -1
- package/src/harness.ts +1 -17
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @poncho-ai/harness@0.20.
|
|
2
|
+
> @poncho-ai/harness@0.20.5 build /home/runner/work/poncho-ai/poncho-ai/packages/harness
|
|
3
3
|
> tsup src/index.ts --format esm --dts
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
[34mCLI[39m tsup v8.5.1
|
|
8
8
|
[34mCLI[39m Target: es2022
|
|
9
9
|
[34mESM[39m Build start
|
|
10
|
-
[32mESM[39m [1mdist/index.js [22m[32m199.
|
|
11
|
-
[32mESM[39m ⚡️ Build success in
|
|
10
|
+
[32mESM[39m [1mdist/index.js [22m[32m199.08 KB[39m
|
|
11
|
+
[32mESM[39m ⚡️ Build success in 126ms
|
|
12
12
|
[34mDTS[39m Build start
|
|
13
|
-
[32mDTS[39m ⚡️ Build success in
|
|
13
|
+
[32mDTS[39m ⚡️ Build success in 6833ms
|
|
14
14
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m24.36 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @poncho-ai/harness
|
|
2
2
|
|
|
3
|
+
## 0.20.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`8286e1e`](https://github.com/cesr/poncho-ai/commit/8286e1ef244208d74e1daf8ef1c2a1a3afb1459e) Thanks [@cesr](https://github.com/cesr)! - Match Latitude telemetry integration exactly to their documented Vercel AI SDK pattern — no custom constructor options.
|
|
8
|
+
|
|
3
9
|
## 0.20.4
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -2637,7 +2637,6 @@ var createSubagentTools = (manager, getConversationId, getOwnerId) => [
|
|
|
2637
2637
|
|
|
2638
2638
|
// src/harness.ts
|
|
2639
2639
|
import { LatitudeTelemetry } from "@latitude-data/telemetry";
|
|
2640
|
-
import { diag, DiagLogLevel } from "@opentelemetry/api";
|
|
2641
2640
|
|
|
2642
2641
|
// src/tool-dispatcher.ts
|
|
2643
2642
|
var ToolDispatcher = class {
|
|
@@ -3472,26 +3471,7 @@ var AgentHarness = class {
|
|
|
3472
3471
|
const rawProjectId = process.env[latProjectIdEnv];
|
|
3473
3472
|
const latitudeProjectId = rawProjectId ? parseInt(rawProjectId, 10) : void 0;
|
|
3474
3473
|
if (telemetryEnabled && latitudeApiKey && latitudeProjectId) {
|
|
3475
|
-
|
|
3476
|
-
{
|
|
3477
|
-
error: (msg, ...args) => {
|
|
3478
|
-
if (typeof msg === "string" && msg.includes("Attempted duplicate registration")) return;
|
|
3479
|
-
console.error(`[poncho][otel] ${msg}`, ...args);
|
|
3480
|
-
},
|
|
3481
|
-
warn: () => {
|
|
3482
|
-
},
|
|
3483
|
-
info: () => {
|
|
3484
|
-
},
|
|
3485
|
-
debug: () => {
|
|
3486
|
-
},
|
|
3487
|
-
verbose: () => {
|
|
3488
|
-
}
|
|
3489
|
-
},
|
|
3490
|
-
DiagLogLevel.ERROR
|
|
3491
|
-
);
|
|
3492
|
-
this.latitudeTelemetry = new LatitudeTelemetry(latitudeApiKey, {
|
|
3493
|
-
instrumentations: {}
|
|
3494
|
-
});
|
|
3474
|
+
this.latitudeTelemetry = new LatitudeTelemetry(latitudeApiKey);
|
|
3495
3475
|
} else if (telemetryEnabled && latitudeBlock && (!latitudeApiKey || !latitudeProjectId)) {
|
|
3496
3476
|
const missing = [];
|
|
3497
3477
|
if (!latitudeApiKey) missing.push(`${latApiKeyEnv} env var`);
|
package/package.json
CHANGED
package/src/harness.ts
CHANGED
|
@@ -32,7 +32,6 @@ import { createSkillTools, normalizeScriptPolicyPath } from "./skill-tools.js";
|
|
|
32
32
|
import { createSubagentTools } from "./subagent-tools.js";
|
|
33
33
|
import type { SubagentManager } from "./subagent-manager.js";
|
|
34
34
|
import { LatitudeTelemetry } from "@latitude-data/telemetry";
|
|
35
|
-
import { diag, DiagLogLevel } from "@opentelemetry/api";
|
|
36
35
|
import {
|
|
37
36
|
isSiblingScriptsPattern,
|
|
38
37
|
matchesRelativeScriptPattern,
|
|
@@ -915,22 +914,7 @@ export class AgentHarness {
|
|
|
915
914
|
const rawProjectId = process.env[latProjectIdEnv];
|
|
916
915
|
const latitudeProjectId = rawProjectId ? parseInt(rawProjectId, 10) : undefined;
|
|
917
916
|
if (telemetryEnabled && latitudeApiKey && latitudeProjectId) {
|
|
918
|
-
|
|
919
|
-
{
|
|
920
|
-
error: (msg, ...args) => {
|
|
921
|
-
if (typeof msg === "string" && msg.includes("Attempted duplicate registration")) return;
|
|
922
|
-
console.error(`[poncho][otel] ${msg}`, ...args);
|
|
923
|
-
},
|
|
924
|
-
warn: () => {},
|
|
925
|
-
info: () => {},
|
|
926
|
-
debug: () => {},
|
|
927
|
-
verbose: () => {},
|
|
928
|
-
},
|
|
929
|
-
DiagLogLevel.ERROR,
|
|
930
|
-
);
|
|
931
|
-
this.latitudeTelemetry = new LatitudeTelemetry(latitudeApiKey, {
|
|
932
|
-
instrumentations: {},
|
|
933
|
-
});
|
|
917
|
+
this.latitudeTelemetry = new LatitudeTelemetry(latitudeApiKey);
|
|
934
918
|
} else if (telemetryEnabled && latitudeBlock && (!latitudeApiKey || !latitudeProjectId)) {
|
|
935
919
|
const missing: string[] = [];
|
|
936
920
|
if (!latitudeApiKey) missing.push(`${latApiKeyEnv} env var`);
|