@poncho-ai/harness 0.20.6 → 0.20.8
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 +12 -0
- package/dist/index.js +7 -2
- package/package.json +1 -1
- package/src/agent-parser.ts +3 -1
- package/src/harness.ts +5 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @poncho-ai/harness@0.20.
|
|
2
|
+
> @poncho-ai/harness@0.20.8 build /Users/cesar/Dev/latitude/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.55 KB[39m
|
|
11
|
+
[32mESM[39m ⚡️ Build success in 79ms
|
|
12
12
|
[34mDTS[39m Build start
|
|
13
|
-
[32mDTS[39m ⚡️ Build success in
|
|
13
|
+
[32mDTS[39m ⚡️ Build success in 3897ms
|
|
14
14
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m24.36 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @poncho-ai/harness
|
|
2
2
|
|
|
3
|
+
## 0.20.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`0ec1f69`](https://github.com/cesr/poncho-ai/commit/0ec1f69a56b6424967d994663294adbbde1b9257) Thanks [@cesr](https://github.com/cesr)! - Support flat string `model: claude-opus-4-6` shorthand in AGENT.md frontmatter (in addition to nested `model: { name: ... }`). Log the resolved model name on first step for deployment debugging.
|
|
8
|
+
|
|
9
|
+
## 0.20.7
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`8999a47`](https://github.com/cesr/poncho-ai/commit/8999a477b6e73ffb7c942a9cc5c85e704ec158b8) Thanks [@cesr](https://github.com/cesr)! - Enable token usage and cost tracking in Latitude telemetry by setting `recordInputs` and `recordOutputs` in the Vercel AI SDK's `experimental_telemetry` config.
|
|
14
|
+
|
|
3
15
|
## 0.20.6
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -132,7 +132,7 @@ var parseAgentMarkdown = (content) => {
|
|
|
132
132
|
if (typeof parsed.name !== "string" || parsed.name.trim() === "") {
|
|
133
133
|
throw new Error("Invalid AGENT.md: frontmatter requires a non-empty `name`.");
|
|
134
134
|
}
|
|
135
|
-
const modelValue = asRecord(parsed.model);
|
|
135
|
+
const modelValue = typeof parsed.model === "string" ? { name: parsed.model } : asRecord(parsed.model);
|
|
136
136
|
const limitsValue = asRecord(parsed.limits);
|
|
137
137
|
const parseTools = (key) => {
|
|
138
138
|
const entries = Array.isArray(parsed[key]) ? parsed[key].filter((item) => typeof item === "string") : [];
|
|
@@ -4095,6 +4095,9 @@ ${textContent}` };
|
|
|
4095
4095
|
const modelName = agent.frontmatter.model?.name ?? "claude-opus-4-5";
|
|
4096
4096
|
const temperature = agent.frontmatter.model?.temperature ?? 0.2;
|
|
4097
4097
|
const maxTokens = agent.frontmatter.model?.maxTokens;
|
|
4098
|
+
if (step === 1) {
|
|
4099
|
+
console.info(`[poncho] model="${modelName}" provider="${agent.frontmatter.model?.provider ?? "anthropic"}"`);
|
|
4100
|
+
}
|
|
4098
4101
|
const modelInstance = this.modelProvider(modelName);
|
|
4099
4102
|
const cachedMessages = addPromptCacheBreakpoints(coreMessages, modelInstance);
|
|
4100
4103
|
const telemetryEnabled = this.loadedConfig?.telemetry?.enabled !== false;
|
|
@@ -4107,7 +4110,9 @@ ${textContent}` };
|
|
|
4107
4110
|
abortSignal: input.abortSignal,
|
|
4108
4111
|
...typeof maxTokens === "number" ? { maxTokens } : {},
|
|
4109
4112
|
experimental_telemetry: {
|
|
4110
|
-
isEnabled: telemetryEnabled && !!this.latitudeTelemetry
|
|
4113
|
+
isEnabled: telemetryEnabled && !!this.latitudeTelemetry,
|
|
4114
|
+
recordInputs: true,
|
|
4115
|
+
recordOutputs: true
|
|
4111
4116
|
}
|
|
4112
4117
|
});
|
|
4113
4118
|
let fullText = "";
|
package/package.json
CHANGED
package/src/agent-parser.ts
CHANGED
|
@@ -155,7 +155,9 @@ export const parseAgentMarkdown = (content: string): ParsedAgent => {
|
|
|
155
155
|
throw new Error("Invalid AGENT.md: frontmatter requires a non-empty `name`.");
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
const modelValue =
|
|
158
|
+
const modelValue = typeof parsed.model === "string"
|
|
159
|
+
? { name: parsed.model }
|
|
160
|
+
: asRecord(parsed.model);
|
|
159
161
|
const limitsValue = asRecord(parsed.limits);
|
|
160
162
|
const parseTools = (
|
|
161
163
|
key: "allowed-tools" | "approval-required",
|
package/src/harness.ts
CHANGED
|
@@ -1665,6 +1665,9 @@ ${boundedMainMemory.trim()}`
|
|
|
1665
1665
|
const modelName = agent.frontmatter.model?.name ?? "claude-opus-4-5";
|
|
1666
1666
|
const temperature = agent.frontmatter.model?.temperature ?? 0.2;
|
|
1667
1667
|
const maxTokens = agent.frontmatter.model?.maxTokens;
|
|
1668
|
+
if (step === 1) {
|
|
1669
|
+
console.info(`[poncho] model="${modelName}" provider="${agent.frontmatter.model?.provider ?? "anthropic"}"`);
|
|
1670
|
+
}
|
|
1668
1671
|
|
|
1669
1672
|
const modelInstance = this.modelProvider(modelName);
|
|
1670
1673
|
const cachedMessages = addPromptCacheBreakpoints(coreMessages, modelInstance);
|
|
@@ -1681,6 +1684,8 @@ ${boundedMainMemory.trim()}`
|
|
|
1681
1684
|
...(typeof maxTokens === "number" ? { maxTokens } : {}),
|
|
1682
1685
|
experimental_telemetry: {
|
|
1683
1686
|
isEnabled: telemetryEnabled && !!this.latitudeTelemetry,
|
|
1687
|
+
recordInputs: true,
|
|
1688
|
+
recordOutputs: true,
|
|
1684
1689
|
},
|
|
1685
1690
|
});
|
|
1686
1691
|
// Stream full response — use fullStream to get visibility into
|