latitude-mcp-server 2.2.7 → 3.0.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.
package/dist/api.d.ts CHANGED
@@ -52,10 +52,6 @@ interface PushResponse {
52
52
  * This is the CLI-style push that sends all changes at once
53
53
  */
54
54
  export declare function pushChanges(versionUuid: string, changes: DocumentChange[]): Promise<PushResponse>;
55
- /**
56
- * Compute hash of content for diff comparison
57
- */
58
- export declare function hashContent(content: string): string;
59
55
  /**
60
56
  * Compute diff between incoming prompts and existing prompts
61
57
  * Returns only the changes that need to be made
package/dist/api.js CHANGED
@@ -24,7 +24,6 @@ exports.getDocument = getDocument;
24
24
  exports.createOrUpdateDocument = createOrUpdateDocument;
25
25
  exports.deleteDocument = deleteDocument;
26
26
  exports.pushChanges = pushChanges;
27
- exports.hashContent = hashContent;
28
27
  exports.computeDiff = computeDiff;
29
28
  exports.runDocument = runDocument;
30
29
  exports.validatePromptLContent = validatePromptLContent;
@@ -67,9 +66,6 @@ async function request(endpoint, options = {}) {
67
66
  const body = options.body && method === 'POST'
68
67
  ? { ...options.body, __internal: { source: 'api' } }
69
68
  : options.body;
70
- if (body) {
71
- logger.debug(`Request body: ${JSON.stringify(body, null, 2)}`);
72
- }
73
69
  const response = await fetch(url, {
74
70
  method,
75
71
  headers: {
@@ -333,19 +329,6 @@ async function pushChanges(versionUuid, changes) {
333
329
  body: { changes: apiChanges },
334
330
  });
335
331
  }
336
- /**
337
- * Compute hash of content for diff comparison
338
- */
339
- function hashContent(content) {
340
- // Simple hash - in production you might want crypto
341
- let hash = 0;
342
- for (let i = 0; i < content.length; i++) {
343
- const char = content.charCodeAt(i);
344
- hash = ((hash << 5) - hash) + char;
345
- hash = hash & hash; // Convert to 32bit integer
346
- }
347
- return hash.toString(16);
348
- }
349
332
  /**
350
333
  * Compute diff between incoming prompts and existing prompts
351
334
  * Returns only the changes that need to be made
@@ -706,7 +689,6 @@ async function deployToLive(changes, _versionName) {
706
689
  logger.info(`Draft created: ${draft.uuid}`);
707
690
  // Step 2: Push all changes to the draft in ONE batch
708
691
  logger.info(`Pushing ${actualChanges.length} change(s) to draft...`);
709
- logger.debug(`Changes payload: ${JSON.stringify(actualChanges, null, 2)}`);
710
692
  const pushResult = await pushChanges(draft.uuid, actualChanges);
711
693
  logger.info(`Push complete: ${pushResult.documentsProcessed} documents processed`);
712
694
  // Step 3: Publish the draft to make it LIVE
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "latitude-mcp-server",
3
- "version": "2.2.7",
3
+ "version": "3.0.0",
4
4
  "description": "Simplified MCP server for Latitude.so prompt management - 8 focused tools for push, pull, run, and manage prompts",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",