@devpad/mcp 2.0.4 → 2.1.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.
Files changed (2) hide show
  1. package/dist/index.js +61 -50
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4,25 +4,43 @@ var __getProtoOf = Object.getPrototypeOf;
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ function __accessProp(key) {
8
+ return this[key];
9
+ }
10
+ var __toESMCache_node;
11
+ var __toESMCache_esm;
7
12
  var __toESM = (mod, isNodeMode, target) => {
13
+ var canCache = mod != null && typeof mod === "object";
14
+ if (canCache) {
15
+ var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
16
+ var cached = cache.get(mod);
17
+ if (cached)
18
+ return cached;
19
+ }
8
20
  target = mod != null ? __create(__getProtoOf(mod)) : {};
9
21
  const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
10
22
  for (let key of __getOwnPropNames(mod))
11
23
  if (!__hasOwnProp.call(to, key))
12
24
  __defProp(to, key, {
13
- get: () => mod[key],
25
+ get: __accessProp.bind(mod, key),
14
26
  enumerable: true
15
27
  });
28
+ if (canCache)
29
+ cache.set(mod, to);
16
30
  return to;
17
31
  };
18
32
  var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
33
+ var __returnValue = (v) => v;
34
+ function __exportSetter(name, newValue) {
35
+ this[name] = __returnValue.bind(null, newValue);
36
+ }
19
37
  var __export = (target, all) => {
20
38
  for (var name in all)
21
39
  __defProp(target, name, {
22
40
  get: all[name],
23
41
  enumerable: true,
24
42
  configurable: true,
25
- set: (newValue) => all[name] = () => newValue
43
+ set: __exportSetter.bind(all, name)
26
44
  });
27
45
  };
28
46
 
@@ -10166,47 +10184,7 @@ var coerce = {
10166
10184
  date: (arg) => ZodDate.create({ ...arg, coerce: true })
10167
10185
  };
10168
10186
  var NEVER = INVALID;
10169
- // ../api/dist/chunk-XGQQPYSB.js
10170
- var ArrayBufferedQueue = class {
10171
- constructor(_capacity) {
10172
- this._capacity = _capacity;
10173
- this._entries = [];
10174
- this._head = 0;
10175
- this._tail = 0;
10176
- this._size = 0;
10177
- }
10178
- latest() {
10179
- if (this._size === 0)
10180
- return null;
10181
- return this._entries[this._tail - 1] ?? null;
10182
- }
10183
- list() {
10184
- if (this._size === 0)
10185
- return [];
10186
- if (this._head < this._tail) {
10187
- return this._entries.slice(this._head, this._tail);
10188
- }
10189
- return this._entries.slice(this._head).concat(this._entries.slice(0, this._tail));
10190
- }
10191
- add(item) {
10192
- if (this._size === this._capacity) {
10193
- this._head = (this._head + 1) % this._capacity;
10194
- } else {
10195
- this._size++;
10196
- }
10197
- this._entries[this._tail] = item;
10198
- this._tail = (this._tail + 1) % this._capacity;
10199
- }
10200
- size() {
10201
- return this._size;
10202
- }
10203
- clear() {
10204
- this._entries = [];
10205
- this._head = 0;
10206
- this._tail = 0;
10207
- this._size = 0;
10208
- }
10209
- };
10187
+ // ../api/dist/chunk-7SQVSGWV.js
10210
10188
  var upsert_project = exports_external.object({
10211
10189
  id: exports_external.string().optional().nullable(),
10212
10190
  project_id: exports_external.string(),
@@ -10241,13 +10219,6 @@ var upsert_todo = exports_external.object({
10241
10219
  force: exports_external.boolean().optional().describe("Override protection on user-modified entities")
10242
10220
  });
10243
10221
  var update_action = exports_external.union([exports_external.literal("CONFIRM"), exports_external.literal("UNLINK"), exports_external.literal("CREATE"), exports_external.literal("IGNORE"), exports_external.literal("DELETE"), exports_external.literal("COMPLETE")]);
10244
- var ConfigSchema = exports_external.object({
10245
- tags: exports_external.array(exports_external.object({
10246
- name: exports_external.string(),
10247
- match: exports_external.array(exports_external.string())
10248
- })),
10249
- ignore: exports_external.array(exports_external.string().regex(/^[^]*$/, "Invalid path"))
10250
- });
10251
10222
  var upsert_tag = exports_external.object({
10252
10223
  id: exports_external.string().optional(),
10253
10224
  title: exports_external.string(),
@@ -11809,6 +11780,46 @@ function handleNetworkError(error) {
11809
11780
  const message = error instanceof Error ? error.message : "Unknown network error";
11810
11781
  throw new NetworkError(message);
11811
11782
  }
11783
+ var ArrayBufferedQueue = class {
11784
+ constructor(_capacity) {
11785
+ this._capacity = _capacity;
11786
+ this._entries = [];
11787
+ this._head = 0;
11788
+ this._tail = 0;
11789
+ this._size = 0;
11790
+ }
11791
+ latest() {
11792
+ if (this._size === 0)
11793
+ return null;
11794
+ return this._entries[this._tail - 1] ?? null;
11795
+ }
11796
+ list() {
11797
+ if (this._size === 0)
11798
+ return [];
11799
+ if (this._head < this._tail) {
11800
+ return this._entries.slice(this._head, this._tail);
11801
+ }
11802
+ return this._entries.slice(this._head).concat(this._entries.slice(0, this._tail));
11803
+ }
11804
+ add(item) {
11805
+ if (this._size === this._capacity) {
11806
+ this._head = (this._head + 1) % this._capacity;
11807
+ } else {
11808
+ this._size++;
11809
+ }
11810
+ this._entries[this._tail] = item;
11811
+ this._tail = (this._tail + 1) % this._capacity;
11812
+ }
11813
+ size() {
11814
+ return this._size;
11815
+ }
11816
+ clear() {
11817
+ this._entries = [];
11818
+ this._head = 0;
11819
+ this._tail = 0;
11820
+ this._size = 0;
11821
+ }
11822
+ };
11812
11823
  var ApiClient = class {
11813
11824
  constructor(options) {
11814
11825
  this.category = "api";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devpad/mcp",
3
- "version": "2.0.4",
3
+ "version": "2.1.1",
4
4
  "description": "MCP server for devpad - exposes devpad API functionality via Model Context Protocol",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",