completion-kit 0.14.0 → 0.15.0
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 94273de5dedc3c0018d13cabe3cb1923e4f110f06373fc486a0a8b29f5349480
|
|
4
|
+
data.tar.gz: 69fb87d5babfdc7b07924acec90678210ac4864ae17463ebf6fdced60427d657
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d19755a41699b1a0540702df99ec7cbef6428cf588e24fe0d77088bd4ace35d10c976bc03aaee92f4aa54108cefc322e19562c658a23bbca6d40130d834e4b49
|
|
7
|
+
data.tar.gz: e044d92ff69aa9ea73aa6447e61ec1229b01ca9bdfe4881d9ce92870d900fdd5bf397154d1c194993085acf1b9d2b011ce4e944bc132cfba447f4944bf722ab6
|
|
@@ -154,7 +154,6 @@ function ckPollDiscoveryOnce() {
|
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
function ckStartDiscoveryPolling(graceMs) {
|
|
157
|
-
if (!document.querySelector('[id^="discovery_status_"]')) return;
|
|
158
157
|
if (!ckStatusesUrl()) return;
|
|
159
158
|
ckDiscoveryPollUntil = Date.now() + (graceMs || 0);
|
|
160
159
|
if (ckDiscoveryPollTimer) return;
|
|
@@ -28,7 +28,7 @@ module CompletionKit
|
|
|
28
28
|
handler: :create
|
|
29
29
|
},
|
|
30
30
|
"prompts_update" => {
|
|
31
|
-
description: "Update a prompt",
|
|
31
|
+
description: "Update a prompt. If the prompt already has runs, this creates a new DRAFT version (current=false) rather than editing in place or publishing — promote it with prompts_publish — so an agent's edits don't go live without a gate. If it has no runs, it is updated in place.",
|
|
32
32
|
inputSchema: {
|
|
33
33
|
type: "object",
|
|
34
34
|
properties: {
|
|
@@ -84,7 +84,6 @@ module CompletionKit
|
|
|
84
84
|
attrs = args.except("id").slice("name", "description", "template", "llm_model")
|
|
85
85
|
if prompt.runs.exists?
|
|
86
86
|
new_prompt = prompt.clone_as_new_version(attrs)
|
|
87
|
-
new_prompt.publish!
|
|
88
87
|
new_prompt.update!(tag_names: args["tag_names"]) if args.key?("tag_names")
|
|
89
88
|
text_result(new_prompt.reload.as_json)
|
|
90
89
|
elsif prompt.update(attrs)
|