@cleocode/adapters 2026.9.22 → 2026.9.23
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/index.js +60 -6
- package/dist/index.js.map +2 -2
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -809,7 +809,7 @@ var init_acceptance_gate_schema = __esm({
|
|
|
809
809
|
message: "Result cannot precede input capture"
|
|
810
810
|
});
|
|
811
811
|
const executable = ["test", "command", "lint"].includes(result.kind);
|
|
812
|
-
if (executable && !binding.invocation)
|
|
812
|
+
if (executable && !binding.invocation && result.result !== "error")
|
|
813
813
|
context.addIssue({
|
|
814
814
|
code: "custom",
|
|
815
815
|
path: ["binding", "invocation"],
|
|
@@ -3575,12 +3575,21 @@ var init_operations_registry = __esm({
|
|
|
3575
3575
|
gateway: "query",
|
|
3576
3576
|
domain: "tasks",
|
|
3577
3577
|
operation: "history",
|
|
3578
|
-
description: "Show task work history
|
|
3578
|
+
description: "Show task work history; with taskId, the task audit trail; with ranking, who changed its priority/severity/kind/depends and why (T12693)",
|
|
3579
3579
|
tier: 1,
|
|
3580
3580
|
idempotent: true,
|
|
3581
3581
|
sessionRequired: false,
|
|
3582
3582
|
requiredParams: [],
|
|
3583
|
-
params: [
|
|
3583
|
+
params: [
|
|
3584
|
+
{ name: "taskId", type: "string", required: false, description: "Task to show history for" },
|
|
3585
|
+
{ name: "limit", type: "number", required: false, description: "Maximum entries" },
|
|
3586
|
+
{
|
|
3587
|
+
name: "ranking",
|
|
3588
|
+
type: "boolean",
|
|
3589
|
+
required: false,
|
|
3590
|
+
description: "Only ranking-input changes (actor, session, reason, before/after)"
|
|
3591
|
+
}
|
|
3592
|
+
]
|
|
3584
3593
|
},
|
|
3585
3594
|
{
|
|
3586
3595
|
gateway: "query",
|
|
@@ -6075,6 +6084,32 @@ var init_operations_registry = __esm({
|
|
|
6075
6084
|
],
|
|
6076
6085
|
outputSchema: OUTPUT_CONTRACTS["tasks.assignee"]
|
|
6077
6086
|
},
|
|
6087
|
+
{
|
|
6088
|
+
gateway: "mutate",
|
|
6089
|
+
domain: "tasks",
|
|
6090
|
+
operation: "ranking.revert",
|
|
6091
|
+
description: "tasks.ranking.revert (mutate) \u2014 undo one recorded ranking change (priority/severity/kind/depends) as a new audited change (T12693, D11161)",
|
|
6092
|
+
tier: 1,
|
|
6093
|
+
idempotent: false,
|
|
6094
|
+
sessionRequired: false,
|
|
6095
|
+
requiredParams: ["entryId"],
|
|
6096
|
+
params: [
|
|
6097
|
+
{
|
|
6098
|
+
name: "entryId",
|
|
6099
|
+
type: "string",
|
|
6100
|
+
required: true,
|
|
6101
|
+
description: "ranking_changed audit row id (cleo history ranking <taskId>)",
|
|
6102
|
+
cli: { positional: true }
|
|
6103
|
+
},
|
|
6104
|
+
{ name: "reason", type: "string", required: false, description: "Why it is reverted" },
|
|
6105
|
+
{
|
|
6106
|
+
name: "force",
|
|
6107
|
+
type: "boolean",
|
|
6108
|
+
required: false,
|
|
6109
|
+
description: "Revert even though a field changed again since"
|
|
6110
|
+
}
|
|
6111
|
+
]
|
|
6112
|
+
},
|
|
6078
6113
|
{
|
|
6079
6114
|
gateway: "mutate",
|
|
6080
6115
|
domain: "tasks",
|
|
@@ -13415,7 +13450,10 @@ var init_evidence_atom_schema = __esm({
|
|
|
13415
13450
|
["commit", "note"],
|
|
13416
13451
|
["decision", "files"],
|
|
13417
13452
|
["decision", "note"],
|
|
13418
|
-
["pr", "files"]
|
|
13453
|
+
["pr", "files"],
|
|
13454
|
+
// T12689: a deletion-only PR (no bytes to hash). Contextual validation
|
|
13455
|
+
// accepts this only when every change the PR made is a deletion.
|
|
13456
|
+
["pr", "note"]
|
|
13419
13457
|
]
|
|
13420
13458
|
},
|
|
13421
13459
|
testsPassed: { oneOf: [["test-run"], ["tool"], ["ci"]] },
|
|
@@ -17259,7 +17297,7 @@ var init_collection_keys = __esm({
|
|
|
17259
17297
|
|
|
17260
17298
|
// packages/contracts/src/decide.ts
|
|
17261
17299
|
import { z as z24 } from "zod";
|
|
17262
|
-
var DECISION_QUESTION_TYPES, DECISION_OUTCOME_SOURCES, DECISION_REQUEST_LIMITS, decisionQuestionTypeSchema, decisionOutcomeSourceSchema, decisionInstructionsSchema, unitIntervalSchema, decisionStateSchema, noulDecisionQuestionSchema, choiceDecisionQuestionSchema, scoreDecisionQuestionSchema, decisionQuestionSchema, decisionRequestSchema, noulDecisionAnswerSchema, choiceDecisionAnswerSchema, scoreDecisionAnswerSchema, decisionAnswerSchema, decisionOutcomeSchema, decisionProviderConfigSchema;
|
|
17300
|
+
var DECISION_QUESTION_TYPES, DECISION_OUTCOME_SOURCES, DECISION_REQUEST_LIMITS, DECISION_PROVIDER_KINDS, decisionQuestionTypeSchema, decisionOutcomeSourceSchema, decisionInstructionsSchema, unitIntervalSchema, decisionStateSchema, noulDecisionQuestionSchema, choiceDecisionQuestionSchema, scoreDecisionQuestionSchema, decisionQuestionSchema, decisionRequestSchema, noulDecisionAnswerSchema, choiceDecisionAnswerSchema, scoreDecisionAnswerSchema, decisionAnswerSchema, decisionOutcomeSchema, decisionProviderKindSchema, decisionProviderConfigSchema;
|
|
17263
17301
|
var init_decide = __esm({
|
|
17264
17302
|
"packages/contracts/src/decide.ts"() {
|
|
17265
17303
|
"use strict";
|
|
@@ -17283,6 +17321,7 @@ var init_decide = __esm({
|
|
|
17283
17321
|
/** Maximum number of levels on a `score` question's scale. */
|
|
17284
17322
|
maxScoreLevels: 10
|
|
17285
17323
|
};
|
|
17324
|
+
DECISION_PROVIDER_KINDS = ["layahost", "jev"];
|
|
17286
17325
|
decisionQuestionTypeSchema = z24.enum(DECISION_QUESTION_TYPES);
|
|
17287
17326
|
decisionOutcomeSourceSchema = z24.enum(DECISION_OUTCOME_SOURCES);
|
|
17288
17327
|
decisionInstructionsSchema = z24.union([z24.string(), z24.record(z24.string(), z24.json())]);
|
|
@@ -17320,6 +17359,8 @@ var init_decide = __esm({
|
|
|
17320
17359
|
]);
|
|
17321
17360
|
decisionRequestSchema = z24.object({
|
|
17322
17361
|
model: z24.string().min(1).optional(),
|
|
17362
|
+
lang: z24.string().regex(/^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$/).optional(),
|
|
17363
|
+
cache: z24.boolean().optional(),
|
|
17323
17364
|
state: decisionStateSchema,
|
|
17324
17365
|
questions: z24.record(z24.string().min(1), decisionQuestionSchema).refine(
|
|
17325
17366
|
(questions) => {
|
|
@@ -17360,14 +17401,26 @@ var init_decide = __esm({
|
|
|
17360
17401
|
requestId: z24.string().min(1).optional(),
|
|
17361
17402
|
latencyMs: z24.number().nonnegative(),
|
|
17362
17403
|
costUsd: z24.number().nonnegative().optional(),
|
|
17404
|
+
costMicros: z24.number().int().nonnegative().optional(),
|
|
17405
|
+
balanceMicros: z24.number().int().optional(),
|
|
17406
|
+
checkpoint: z24.string().min(1).optional(),
|
|
17363
17407
|
inputTokens: z24.number().int().nonnegative().optional()
|
|
17364
17408
|
});
|
|
17409
|
+
decisionProviderKindSchema = z24.enum(DECISION_PROVIDER_KINDS);
|
|
17365
17410
|
decisionProviderConfigSchema = z24.object({
|
|
17366
|
-
baseUrl: z24.url()
|
|
17411
|
+
baseUrl: z24.url(),
|
|
17412
|
+
provider: decisionProviderKindSchema.optional()
|
|
17367
17413
|
});
|
|
17368
17414
|
}
|
|
17369
17415
|
});
|
|
17370
17416
|
|
|
17417
|
+
// packages/contracts/src/decide-sites.ts
|
|
17418
|
+
var init_decide_sites = __esm({
|
|
17419
|
+
"packages/contracts/src/decide-sites.ts"() {
|
|
17420
|
+
"use strict";
|
|
17421
|
+
}
|
|
17422
|
+
});
|
|
17423
|
+
|
|
17371
17424
|
// packages/contracts/src/task-id.ts
|
|
17372
17425
|
var init_task_id = __esm({
|
|
17373
17426
|
"packages/contracts/src/task-id.ts"() {
|
|
@@ -17449,6 +17502,7 @@ var init_src = __esm({
|
|
|
17449
17502
|
init_caamp_markers();
|
|
17450
17503
|
init_collection_keys();
|
|
17451
17504
|
init_decide();
|
|
17505
|
+
init_decide_sites();
|
|
17452
17506
|
init_task_id();
|
|
17453
17507
|
}
|
|
17454
17508
|
});
|