@clipform/mcp-server 1.26.0 → 1.26.1

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.
@@ -6,14 +6,14 @@ import {
6
6
  getWorkflowText,
7
7
  objectType,
8
8
  registerPrompts
9
- } from "./chunk-GQEUGIRA.js";
9
+ } from "./chunk-4YHOKP2Y.js";
10
10
  import {
11
11
  GUIDE_TYPES,
12
12
  QUIZ_VARIANTS,
13
13
  getGuideContent,
14
14
  getGuideUri,
15
15
  registerResources
16
- } from "./chunk-4ODCLOG6.js";
16
+ } from "./chunk-2UCFH6N2.js";
17
17
  import {
18
18
  BUSINESS,
19
19
  CONTACT_FIELDS,
@@ -29,7 +29,7 @@ import {
29
29
  errorResult,
30
30
  resolveFormType,
31
31
  textResult
32
- } from "./chunk-CJFYORUZ.js";
32
+ } from "./chunk-6G35U7YP.js";
33
33
  import {
34
34
  __commonJS,
35
35
  __export,
@@ -17325,7 +17325,7 @@ function registerListFormsTool(server) {
17325
17325
  const lines = [`Found ${data.forms.length} form(s):
17326
17326
  `];
17327
17327
  for (const f of data.forms) {
17328
- const status = f.is_live ? "live" : "draft";
17328
+ const status = f.is_live ? f.has_unpublished_changes ? "live, unpublished changes" : "live" : "draft";
17329
17329
  const tagStr = f.tags.length > 0 ? ` [${f.tags.map((t) => t.name).join(", ")}]` : "";
17330
17330
  lines.push(`- ${f.title || "(untitled)"} (${status})${tagStr} \u2014 ${f.id}`);
17331
17331
  }
@@ -17345,10 +17345,14 @@ function formatFormState(data) {
17345
17345
  const lines = [
17346
17346
  `Form: ${data.title}`,
17347
17347
  `Form ID: ${data.form_id}`,
17348
- `Live: ${data.is_live}`,
17349
- ``,
17350
- `Nodes (in order):`
17348
+ `Live: ${data.is_live}`
17351
17349
  ];
17350
+ if (data.is_live && data.has_unpublished_changes) {
17351
+ lines.push(
17352
+ `Unpublished changes: yes - respondents still see the last published version. Send is_live:true via clipform_update_form to publish.`
17353
+ );
17354
+ }
17355
+ lines.push(``, `Nodes (in order):`);
17352
17356
  for (let i = 0; i < nodes.length; i++) {
17353
17357
  const q = nodes[i];
17354
17358
  lines.push(` ${i + 1}. [${q.type}] ${q.prompt || "(no prompt)"}`);
@@ -17404,7 +17408,7 @@ function registerUpdateFormTool(server) {
17404
17408
  inputSchema: {
17405
17409
  form_id: external_exports.string().uuid().describe("The form UUID (returned by clipform_create_form, not the short share_id from the URL)"),
17406
17410
  title: external_exports.string().optional().describe("New form title"),
17407
- is_live: external_exports.boolean().optional().describe("AI-PROTECTED: Only change live state when the user explicitly asks. Do not auto-publish."),
17411
+ is_live: external_exports.boolean().optional().describe("AI-PROTECTED: Only change live state when the user explicitly asks. Do not auto-publish. Setting true publishes a snapshot respondents see; re-sending true on an already-live form republishes the latest edits (edits to a live form are NOT visible until republished). Setting false takes the form offline but keeps the last published snapshot."),
17408
17412
  show_step_counter: external_exports.boolean().optional().describe("Show step counter (e.g. '1/5'). Recommended for quizzes."),
17409
17413
  disable_back_navigation: external_exports.boolean().optional().describe("Prevent respondents from going back. Recommended for quizzes."),
17410
17414
  total_steps: external_exports.number().nullable().optional().describe("Override the total step count shown in the step counter. Set null to auto-calculate."),
@@ -18789,4 +18793,4 @@ export {
18789
18793
  JSONRPCMessageSchema,
18790
18794
  createServer
18791
18795
  };
18792
- //# sourceMappingURL=chunk-2ORCTK3I.js.map
18796
+ //# sourceMappingURL=chunk-FHRDJGJT.js.map