@inteeka/task-cli 0.1.10 → 0.1.11

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.js CHANGED
@@ -2170,7 +2170,11 @@ import { homedir as homedir5 } from "os";
2170
2170
  import { join as join7 } from "path";
2171
2171
  var FIX_PROMPT_JSON_SCHEMA = {
2172
2172
  type: "object",
2173
- required: ["summary", "suspected_files", "proposed_changes", "confidence"],
2173
+ // Phase 3 confidence_reason is REQUIRED unconditionally so the
2174
+ // server-side refine() (which mandates ≥20 chars on low/medium) never
2175
+ // rejects a fresh submission. The model emits it for high too; that's
2176
+ // cheap (≤1500 chars) and doubles as documentation for reviewers.
2177
+ required: ["summary", "suspected_files", "proposed_changes", "confidence", "confidence_reason"],
2174
2178
  additionalProperties: false,
2175
2179
  properties: {
2176
2180
  summary: { type: "string", minLength: 1, maxLength: 2e3 },
@@ -2209,11 +2213,11 @@ var FIX_PROMPT_JSON_SCHEMA = {
2209
2213
  },
2210
2214
  risk_notes: { type: "string", maxLength: 2e3 },
2211
2215
  confidence: { type: "string", enum: ["low", "medium", "high"] },
2212
- // Phase 3 — explicit reasoning for the confidence rating. Required at
2213
- // ≥20 chars for low/medium ratings; the dashboard's Zod refine() rejects
2214
- // anything shorter on `/submit`. Optional on `high` so the model can
2215
- // omit it when the evidence is overwhelming.
2216
- confidence_reason: { type: "string", maxLength: 1500 }
2216
+ // Phase 3 — explicit reasoning for the confidence rating. Always
2217
+ // required (see `required` array above). minLength=20 matches the
2218
+ // dashboard's Zod refine() so low/medium submissions never fail
2219
+ // server-side validation; high also emits it (cheap, useful).
2220
+ confidence_reason: { type: "string", minLength: 20, maxLength: 1500 }
2217
2221
  }
2218
2222
  };
2219
2223
  var LlmGenerationError = class extends Error {
@@ -2232,7 +2236,9 @@ async function generateFixPromptJson(args) {
2232
2236
  "",
2233
2237
  args.ticketBlock,
2234
2238
  "",
2235
- "Return JSON only matching the supplied schema. Do not include explanatory prose, markdown fences, or commentary."
2239
+ "Return JSON only matching the supplied schema. Do not include explanatory prose, markdown fences, or commentary.",
2240
+ "",
2241
+ "IMPORTANT: confidence_reason is REQUIRED for every rating (\u226520 chars). For low/medium, name which investigation axes lacked signal. For high, briefly state which axes corroborated the proposal."
2236
2242
  ].join("\n");
2237
2243
  const cliArgs = [
2238
2244
  "--print",
@@ -3767,7 +3773,7 @@ function checkBinary(name, command) {
3767
3773
  }
3768
3774
 
3769
3775
  // src/commands/version.ts
3770
- var CLI_VERSION = true ? "0.1.10" : "0.0.0-dev";
3776
+ var CLI_VERSION = true ? "0.1.11" : "0.0.0-dev";
3771
3777
  function registerVersion(program2) {
3772
3778
  program2.command("version").description("Print the CLI version").action(() => {
3773
3779
  process.stdout.write(CLI_VERSION + "\n");