xforce 0.1.3 → 0.1.4

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/dist/cli/index.js CHANGED
@@ -1124,39 +1124,6 @@ var ImplementationPlanSchema = z2.object({
1124
1124
  implementationSteps: z2.array(ImplementationStepSchema),
1125
1125
  estimatedTurns: z2.number().int().positive()
1126
1126
  });
1127
- var PLAN_JSON_SCHEMA = {
1128
- type: "object",
1129
- properties: {
1130
- approach: { type: "string" },
1131
- filesToModify: { type: "array", items: { type: "string" } },
1132
- filesToCreate: { type: "array", items: { type: "string" } },
1133
- estimatedComplexity: { type: "string", enum: ["low", "medium", "high"] },
1134
- risks: { type: "array", items: { type: "string" } },
1135
- implementationSteps: {
1136
- type: "array",
1137
- items: {
1138
- type: "object",
1139
- properties: {
1140
- order: { type: "number" },
1141
- description: { type: "string" },
1142
- files: { type: "array", items: { type: "string" } },
1143
- rationale: { type: "string" }
1144
- },
1145
- required: ["order", "description", "files", "rationale"]
1146
- }
1147
- },
1148
- estimatedTurns: { type: "number" }
1149
- },
1150
- required: [
1151
- "approach",
1152
- "filesToModify",
1153
- "filesToCreate",
1154
- "estimatedComplexity",
1155
- "risks",
1156
- "implementationSteps",
1157
- "estimatedTurns"
1158
- ]
1159
- };
1160
1127
  function extractJSON(text) {
1161
1128
  const jsonMatch = text.match(/\{[\s\S]*\}/);
1162
1129
  if (jsonMatch) return jsonMatch[0];
@@ -1190,10 +1157,6 @@ async function runPlanningAgent(params) {
1190
1157
  permissionMode: "bypassPermissions",
1191
1158
  allowDangerouslySkipPermissions: true,
1192
1159
  systemPrompt: PLANNER_SYSTEM_PROMPT,
1193
- outputFormat: {
1194
- type: "json_schema",
1195
- schema: PLAN_JSON_SCHEMA
1196
- },
1197
1160
  stderr: (data) => {
1198
1161
  stderrOutput += data;
1199
1162
  log6.debug({ stderr: data.trimEnd() }, "Agent SDK stderr");
@@ -1238,7 +1201,8 @@ ${stderrOutput.slice(0, 2e3)}` : "";
1238
1201
  log6.debug(
1239
1202
  {
1240
1203
  subtype: resultMessage.subtype,
1241
- hasStructuredOutput: "structured_output" in resultMessage && !!resultMessage.structured_output,
1204
+ numTurns: resultMessage.num_turns,
1205
+ costUsd: resultMessage.total_cost_usd,
1242
1206
  hasResult: "result" in resultMessage && !!resultMessage.result,
1243
1207
  hasLastAssistant: !!lastAssistantText,
1244
1208
  lastAssistantLength: lastAssistantText.length