@inteeka/task-cli 0.1.9 → 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 +15 -4
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
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
|
-
|
|
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 },
|
|
@@ -2208,7 +2212,12 @@ var FIX_PROMPT_JSON_SCHEMA = {
|
|
|
2208
2212
|
}
|
|
2209
2213
|
},
|
|
2210
2214
|
risk_notes: { type: "string", maxLength: 2e3 },
|
|
2211
|
-
confidence: { type: "string", enum: ["low", "medium", "high"] }
|
|
2215
|
+
confidence: { type: "string", enum: ["low", "medium", "high"] },
|
|
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 }
|
|
2212
2221
|
}
|
|
2213
2222
|
};
|
|
2214
2223
|
var LlmGenerationError = class extends Error {
|
|
@@ -2227,7 +2236,9 @@ async function generateFixPromptJson(args) {
|
|
|
2227
2236
|
"",
|
|
2228
2237
|
args.ticketBlock,
|
|
2229
2238
|
"",
|
|
2230
|
-
"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."
|
|
2231
2242
|
].join("\n");
|
|
2232
2243
|
const cliArgs = [
|
|
2233
2244
|
"--print",
|
|
@@ -3762,7 +3773,7 @@ function checkBinary(name, command) {
|
|
|
3762
3773
|
}
|
|
3763
3774
|
|
|
3764
3775
|
// src/commands/version.ts
|
|
3765
|
-
var CLI_VERSION = true ? "0.1.
|
|
3776
|
+
var CLI_VERSION = true ? "0.1.11" : "0.0.0-dev";
|
|
3766
3777
|
function registerVersion(program2) {
|
|
3767
3778
|
program2.command("version").description("Print the CLI version").action(() => {
|
|
3768
3779
|
process.stdout.write(CLI_VERSION + "\n");
|