@cleocode/adapters 2026.9.2 → 2026.9.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/index.js
CHANGED
|
@@ -1518,6 +1518,83 @@ var init_docs = __esm({
|
|
|
1518
1518
|
}
|
|
1519
1519
|
});
|
|
1520
1520
|
|
|
1521
|
+
// packages/contracts/src/operations/check.ts
|
|
1522
|
+
var VERIFICATION_SCHEMA, GATE_RESULT_SCHEMA, GATE_FIELD_POINTERS, checkGateSetOutputContract, checkGateStatusOutputContract;
|
|
1523
|
+
var init_check = __esm({
|
|
1524
|
+
"packages/contracts/src/operations/check.ts"() {
|
|
1525
|
+
"use strict";
|
|
1526
|
+
VERIFICATION_SCHEMA = {
|
|
1527
|
+
type: "object",
|
|
1528
|
+
additionalProperties: true,
|
|
1529
|
+
properties: {
|
|
1530
|
+
passed: { type: "boolean", description: "True when every required gate is set." },
|
|
1531
|
+
round: { type: "number", description: "IVTR round counter." },
|
|
1532
|
+
gates: {
|
|
1533
|
+
type: "object",
|
|
1534
|
+
additionalProperties: { type: "boolean" },
|
|
1535
|
+
description: "Gate name \u2192 whether it is recorded as passed."
|
|
1536
|
+
},
|
|
1537
|
+
evidence: {
|
|
1538
|
+
type: "object",
|
|
1539
|
+
additionalProperties: true,
|
|
1540
|
+
description: "Gate name \u2192 the evidence atom kinds validated for it."
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
};
|
|
1544
|
+
GATE_RESULT_SCHEMA = {
|
|
1545
|
+
type: "object",
|
|
1546
|
+
required: ["taskId", "verification", "verificationStatus", "passed"],
|
|
1547
|
+
additionalProperties: true,
|
|
1548
|
+
properties: {
|
|
1549
|
+
taskId: { type: "string", description: "The task the gates belong to." },
|
|
1550
|
+
title: { type: "string", description: "Task title, for operator display." },
|
|
1551
|
+
status: { type: "string", description: "Task lifecycle status." },
|
|
1552
|
+
type: { type: "string", description: "Task type (epic | task | subtask)." },
|
|
1553
|
+
verification: VERIFICATION_SCHEMA,
|
|
1554
|
+
verificationStatus: {
|
|
1555
|
+
type: "string",
|
|
1556
|
+
enum: ["passed", "pending"],
|
|
1557
|
+
description: "Whether every required gate is now recorded."
|
|
1558
|
+
},
|
|
1559
|
+
passed: { type: "boolean", description: "Mirror of verification.passed." },
|
|
1560
|
+
round: { type: "number", description: "IVTR round counter." },
|
|
1561
|
+
requiredGates: {
|
|
1562
|
+
type: "array",
|
|
1563
|
+
items: { type: "string" },
|
|
1564
|
+
description: "Gates this project requires before complete."
|
|
1565
|
+
},
|
|
1566
|
+
missingGates: {
|
|
1567
|
+
type: "array",
|
|
1568
|
+
items: { type: "string" },
|
|
1569
|
+
description: "Required gates not yet recorded \u2014 empty means ready to complete."
|
|
1570
|
+
}
|
|
1571
|
+
}
|
|
1572
|
+
};
|
|
1573
|
+
GATE_FIELD_POINTERS = [
|
|
1574
|
+
"/data/taskId",
|
|
1575
|
+
"/data/verification",
|
|
1576
|
+
"/data/verification/passed",
|
|
1577
|
+
"/data/verification/gates",
|
|
1578
|
+
"/data/verificationStatus",
|
|
1579
|
+
"/data/passed",
|
|
1580
|
+
"/data/missingGates",
|
|
1581
|
+
"/data/requiredGates"
|
|
1582
|
+
];
|
|
1583
|
+
checkGateSetOutputContract = {
|
|
1584
|
+
operation: "check.gate.set",
|
|
1585
|
+
shapeNote: "FLAT record, not the nested read shape. The verification object is at /data/verification \u2014 NEVER /data/task/verification, which is how `cleo show` nests a task and does not exist here. The response is self-confirming: it returns the full verification after the write, so there is no need to re-read.",
|
|
1586
|
+
dataSchema: { ...GATE_RESULT_SCHEMA },
|
|
1587
|
+
fieldPointers: [...GATE_FIELD_POINTERS]
|
|
1588
|
+
};
|
|
1589
|
+
checkGateStatusOutputContract = {
|
|
1590
|
+
operation: "check.gate.status",
|
|
1591
|
+
shapeNote: "FLAT record identical in shape to check.gate.set. Read-only: reports which gates are recorded and which are still missing. /data/missingGates being empty is the precondition for `cleo complete`.",
|
|
1592
|
+
dataSchema: { ...GATE_RESULT_SCHEMA },
|
|
1593
|
+
fieldPointers: [...GATE_FIELD_POINTERS]
|
|
1594
|
+
};
|
|
1595
|
+
}
|
|
1596
|
+
});
|
|
1597
|
+
|
|
1521
1598
|
// packages/contracts/src/operations/entities.ts
|
|
1522
1599
|
var ACCOUNT_VIEW_SCHEMA, accountAddOutputContract, accountListOutputContract, accountRemoveOutputContract, PROVIDER_VIEW_SCHEMA, providerListOutputContract, providerShowOutputContract, providerConnectOutputContract, MODEL_VIEW_SCHEMA, modelQueryOutputContract, modelShowOutputContract, profileCreateOutputContract, profileListOutputContract, profilePinOutputContract, profileUseOutputContract;
|
|
1523
1600
|
var init_entities = __esm({
|
|
@@ -1965,6 +2042,7 @@ var tasksShowOutputContract, tasksListOutputContract, tasksFindOutputContract, T
|
|
|
1965
2042
|
var init_output_contracts_data = __esm({
|
|
1966
2043
|
"packages/contracts/src/operations/output-contracts-data.ts"() {
|
|
1967
2044
|
"use strict";
|
|
2045
|
+
init_check();
|
|
1968
2046
|
init_entities();
|
|
1969
2047
|
init_service();
|
|
1970
2048
|
tasksShowOutputContract = {
|
|
@@ -2316,6 +2394,11 @@ var init_output_contracts_data = __esm({
|
|
|
2316
2394
|
fieldPointers: ["/data/key", "/data/scope", "/data/removed"]
|
|
2317
2395
|
};
|
|
2318
2396
|
OUTPUT_CONTRACTS = {
|
|
2397
|
+
// gate verification (T12192 · gh#1420 · gh#1423) — `cleo verify`, the op
|
|
2398
|
+
// every agent is told to run before every `cleo complete`, previously fell
|
|
2399
|
+
// through to the generic contract with an EMPTY pointer list.
|
|
2400
|
+
"check.gate.set": checkGateSetOutputContract,
|
|
2401
|
+
"check.gate.status": checkGateStatusOutputContract,
|
|
2319
2402
|
"tasks.show": tasksShowOutputContract,
|
|
2320
2403
|
"tasks.list": tasksListOutputContract,
|
|
2321
2404
|
"tasks.find": tasksFindOutputContract,
|
|
@@ -14015,6 +14098,7 @@ var init_operations = __esm({
|
|
|
14015
14098
|
init_agent_operation_contract();
|
|
14016
14099
|
init_attention();
|
|
14017
14100
|
init_brain();
|
|
14101
|
+
init_check();
|
|
14018
14102
|
init_conduit();
|
|
14019
14103
|
init_dialectic();
|
|
14020
14104
|
init_docs();
|