@engineeros/connector 0.11.1 → 0.11.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@engineeros/connector",
3
- "version": "0.11.1",
3
+ "version": "0.11.2",
4
4
  "description": "Connect a local coding agent to EngineerOS, using ACP when supported.",
5
5
  "private": false,
6
6
  "type": "module",
@@ -145,7 +145,11 @@ export function normalizeAgentStructuredOutput(
145
145
  "# Workspace Assessment": "## Executive Summary",
146
146
  "# Workspace Assessment Delta": "## Updated Executive Summary",
147
147
  }[outputHeading];
148
- if (firstSection && content.startsWith(firstSection)) {
148
+ if (
149
+ firstSection &&
150
+ (content.startsWith(firstSection) ||
151
+ hasRequiredAssessmentSections(content, outputHeading))
152
+ ) {
149
153
  return `${outputHeading}\n\n${content}`;
150
154
  }
151
155
  const lines = content.split(/\r?\n/);
@@ -170,8 +174,38 @@ export function normalizeAgentStructuredOutput(
170
174
  `Agent response must return '${outputHeading}' as plain Markdown, without a code fence.`,
171
175
  );
172
176
  }
173
- return normalized;
174
- }
177
+ return normalized;
178
+ }
179
+
180
+ function hasRequiredAssessmentSections(content, outputHeading) {
181
+ const sections =
182
+ outputHeading === "# Workspace Assessment"
183
+ ? [
184
+ "## Executive Summary",
185
+ "## Assessment Delta",
186
+ "## Current System Map",
187
+ "## Observed Capabilities",
188
+ "## Findings",
189
+ "## Implementation Scorecard",
190
+ "## Highest-Return Actions",
191
+ "## Commands Observed",
192
+ ]
193
+ : [
194
+ "## Updated Executive Summary",
195
+ "## Assessment Delta",
196
+ "## Current System Map",
197
+ "## Capability Changes",
198
+ "## Finding Changes",
199
+ "## Scorecard Changes",
200
+ "## Highest-Return Actions",
201
+ "## Commands Observed",
202
+ ];
203
+ return sections.every((section) =>
204
+ new RegExp(`(?:^|\\n)${section.replace(/[.*+?^${}()|[\\]\\]/g, "\\$&")}\\s*$`, "m").test(
205
+ content,
206
+ ),
207
+ );
208
+ }
175
209
 
176
210
  function bundledSkill(skillName) {
177
211
  const cached = skillCache.get(skillName);