@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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @poncho-ai/harness@0.20.7 build /Users/cesar/Dev/latitude/poncho-ai/packages/harness
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
  CLI Building entry: src/index.ts
@@ -7,8 +7,8 @@
7
7
  CLI tsup v8.5.1
8
8
  CLI Target: es2022
9
9
  ESM Build start
10
- ESM dist/index.js 199.34 KB
11
- ESM ⚡️ Build success in 115ms
10
+ ESM dist/index.js 199.55 KB
11
+ ESM ⚡️ Build success in 79ms
12
12
  DTS Build start
13
- DTS ⚡️ Build success in 3439ms
13
+ DTS ⚡️ Build success in 3897ms
14
14
  DTS dist/index.d.ts 24.36 KB
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poncho-ai/harness",
3
- "version": "0.20.7",
3
+ "version": "0.20.8",
4
4
  "description": "Agent execution runtime - conversation loop, tool dispatch, streaming",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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 = asRecord(parsed.model);
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);