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: 7a3fda7b41271efa8b169adff5bc72e3f347fa67641aa26ab2d52f84ad4d0526
4
- data.tar.gz: fd9fcca6cc6ac22e32a3f8ba7f917fd8b0ccb30a270f45aa63fb7fc3ee59343b
3
+ metadata.gz: 94273de5dedc3c0018d13cabe3cb1923e4f110f06373fc486a0a8b29f5349480
4
+ data.tar.gz: 69fb87d5babfdc7b07924acec90678210ac4864ae17463ebf6fdced60427d657
5
5
  SHA512:
6
- metadata.gz: '02917101ab65551a18974c80b382ba508b5f0a80f67182bf630998aacfebc4584f85d03d9fc0c59d6de7b89c1881391340cd81c3cd1631bca6b545067f57a513'
7
- data.tar.gz: 255c33ab87a13e1e4ed5387c8cff70c952cf0c68c3d3829ddc4c401208bc1d94019f121fd0cfbd7ec425a4669f3420b96b988ade2bba50f0113f5e714957295e
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)
@@ -1,3 +1,3 @@
1
1
  module CompletionKit
2
- VERSION = "0.14.0"
2
+ VERSION = "0.15.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: completion-kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damien Bastin