@cleocode/adapters 2026.6.6 → 2026.6.7
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 +82 -0
- package/dist/index.js.map +2 -2
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -11577,6 +11577,87 @@ var init_nexus_scope_map = __esm({
|
|
|
11577
11577
|
}
|
|
11578
11578
|
});
|
|
11579
11579
|
|
|
11580
|
+
// packages/contracts/src/operations/output-contracts-data.ts
|
|
11581
|
+
var TASK_MUTATION_DATA_SCHEMA, tasksAddOutputContract, tasksAddBatchOutputContract, tasksUpdateOutputContract, tasksCompleteOutputContract;
|
|
11582
|
+
var init_output_contracts_data = __esm({
|
|
11583
|
+
"packages/contracts/src/operations/output-contracts-data.ts"() {
|
|
11584
|
+
"use strict";
|
|
11585
|
+
TASK_MUTATION_DATA_SCHEMA = {
|
|
11586
|
+
type: "object",
|
|
11587
|
+
required: ["count", "created", "updated", "deleted"],
|
|
11588
|
+
additionalProperties: true,
|
|
11589
|
+
properties: {
|
|
11590
|
+
count: { type: "number", description: "Number of records the mutation affected." },
|
|
11591
|
+
created: {
|
|
11592
|
+
type: "array",
|
|
11593
|
+
description: 'Task IDs created by the mutation (bare strings, e.g. "T11692"). Empty for update/delete-only mutations.',
|
|
11594
|
+
items: { type: "string" }
|
|
11595
|
+
},
|
|
11596
|
+
updated: {
|
|
11597
|
+
type: "array",
|
|
11598
|
+
description: "Task IDs updated by the mutation (bare strings). Empty for create/delete-only mutations.",
|
|
11599
|
+
items: { type: "string" }
|
|
11600
|
+
},
|
|
11601
|
+
deleted: {
|
|
11602
|
+
type: "array",
|
|
11603
|
+
description: "Task IDs deleted by the mutation (bare strings). Empty for create/update-only mutations.",
|
|
11604
|
+
items: { type: "string" }
|
|
11605
|
+
},
|
|
11606
|
+
ids: {
|
|
11607
|
+
type: "array",
|
|
11608
|
+
description: "Deprecated alias for the non-empty bucket. Prefer created/updated/deleted.",
|
|
11609
|
+
items: { type: "string" }
|
|
11610
|
+
},
|
|
11611
|
+
dryRun: { type: "boolean", description: "True when this was a preview-only mutation." },
|
|
11612
|
+
status: { type: "string", description: "Post-mutation task status (add/update/complete)." }
|
|
11613
|
+
}
|
|
11614
|
+
};
|
|
11615
|
+
tasksAddOutputContract = {
|
|
11616
|
+
operation: "tasks.add",
|
|
11617
|
+
shapeNote: 'The created task ID (bare string) is at /data/created/0 \u2014 NOT /data/created/0/id. Example: /data/created/0 \u2192 "T11692".',
|
|
11618
|
+
dataSchema: { ...TASK_MUTATION_DATA_SCHEMA },
|
|
11619
|
+
fieldPointers: ["/data/created/0", "/data/count"]
|
|
11620
|
+
};
|
|
11621
|
+
tasksAddBatchOutputContract = {
|
|
11622
|
+
operation: "tasks.add-batch",
|
|
11623
|
+
shapeNote: "Atomic batch insert. Each created task ID (bare string) is in /data/created (array). Dry-run projections are at root: /data/wouldCreate and /data/insertedCount (=0). NOT under /data/dryRunSummary.",
|
|
11624
|
+
dataSchema: {
|
|
11625
|
+
type: "object",
|
|
11626
|
+
required: ["count", "created", "updated", "deleted"],
|
|
11627
|
+
additionalProperties: true,
|
|
11628
|
+
properties: {
|
|
11629
|
+
...TASK_MUTATION_DATA_SCHEMA.properties,
|
|
11630
|
+
wouldCreate: {
|
|
11631
|
+
type: "number",
|
|
11632
|
+
description: "Dry-run: predicted write count. Present only when dryRun=true."
|
|
11633
|
+
},
|
|
11634
|
+
insertedCount: {
|
|
11635
|
+
type: "number",
|
|
11636
|
+
description: "Dry-run: always 0 (no DB write). Present only when dryRun=true."
|
|
11637
|
+
},
|
|
11638
|
+
wouldAffect: {
|
|
11639
|
+
type: "number",
|
|
11640
|
+
description: "Dry-run: generic affected count. Present only when dryRun=true."
|
|
11641
|
+
}
|
|
11642
|
+
}
|
|
11643
|
+
},
|
|
11644
|
+
fieldPointers: ["/data/created/0", "/data/count", "/data/wouldCreate", "/data/insertedCount"]
|
|
11645
|
+
};
|
|
11646
|
+
tasksUpdateOutputContract = {
|
|
11647
|
+
operation: "tasks.update",
|
|
11648
|
+
shapeNote: "The updated task ID (bare string) is at /data/updated/0 \u2014 NOT /data/updated/0/id. Use /data/status for the post-mutation status.",
|
|
11649
|
+
dataSchema: { ...TASK_MUTATION_DATA_SCHEMA },
|
|
11650
|
+
fieldPointers: ["/data/updated/0", "/data/status", "/data/count"]
|
|
11651
|
+
};
|
|
11652
|
+
tasksCompleteOutputContract = {
|
|
11653
|
+
operation: "tasks.complete",
|
|
11654
|
+
shapeNote: "Completion is a status mutation \u2014 the task ID (bare string) is at /data/updated/0 (status=done). Use /data/status for the post-mutation status.",
|
|
11655
|
+
dataSchema: { ...TASK_MUTATION_DATA_SCHEMA },
|
|
11656
|
+
fieldPointers: ["/data/updated/0", "/data/status", "/data/count"]
|
|
11657
|
+
};
|
|
11658
|
+
}
|
|
11659
|
+
});
|
|
11660
|
+
|
|
11580
11661
|
// packages/contracts/src/peer.ts
|
|
11581
11662
|
var init_peer = __esm({
|
|
11582
11663
|
"packages/contracts/src/peer.ts"() {
|
|
@@ -12837,6 +12918,7 @@ var init_src = __esm({
|
|
|
12837
12918
|
init_docs();
|
|
12838
12919
|
init_operations();
|
|
12839
12920
|
init_nexus_scope_map();
|
|
12921
|
+
init_output_contracts_data();
|
|
12840
12922
|
init_params();
|
|
12841
12923
|
init_tasks();
|
|
12842
12924
|
init_peer();
|