@poncho-ai/harness 0.20.7 → 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 +6 -0
- package/dist/index.js +4 -1
- package/package.json +1 -1
- package/src/agent-parser.ts +3 -1
- package/src/harness.ts +3 -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,11 @@
|
|
|
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
|
+
|
|
3
9
|
## 0.20.7
|
|
4
10
|
|
|
5
11
|
### 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;
|
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);
|