lace-mcp 0.0.2-alpha.16 → 0.0.2-alpha.17

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/cli.js +18 -14
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -41598,9 +41598,9 @@ var require_balanced_match = __commonJS({
41598
41598
  }
41599
41599
  });
41600
41600
 
41601
- // ../../node_modules/.pnpm/brace-expansion@2.0.3/node_modules/brace-expansion/index.js
41601
+ // ../../node_modules/.pnpm/brace-expansion@2.1.1/node_modules/brace-expansion/index.js
41602
41602
  var require_brace_expansion = __commonJS({
41603
- "../../node_modules/.pnpm/brace-expansion@2.0.3/node_modules/brace-expansion/index.js"(exports, module2) {
41603
+ "../../node_modules/.pnpm/brace-expansion@2.1.1/node_modules/brace-expansion/index.js"(exports, module2) {
41604
41604
  var balanced = require_balanced_match();
41605
41605
  module2.exports = expandTop;
41606
41606
  var escSlash = "\0SLASH" + Math.random() + "\0";
@@ -41637,13 +41637,15 @@ var require_brace_expansion = __commonJS({
41637
41637
  parts.push.apply(parts, p);
41638
41638
  return parts;
41639
41639
  }
41640
- function expandTop(str) {
41640
+ function expandTop(str, options) {
41641
41641
  if (!str)
41642
41642
  return [];
41643
+ options = options || {};
41644
+ var max = options.max == null ? Infinity : options.max;
41643
41645
  if (str.substr(0, 2) === "{}") {
41644
41646
  str = "\\{\\}" + str.substr(2);
41645
41647
  }
41646
- return expand2(escapeBraces(str), true).map(unescapeBraces);
41648
+ return expand2(escapeBraces(str), max, true).map(unescapeBraces);
41647
41649
  }
41648
41650
  function embrace(str) {
41649
41651
  return "{" + str + "}";
@@ -41657,14 +41659,14 @@ var require_brace_expansion = __commonJS({
41657
41659
  function gte(i, y) {
41658
41660
  return i >= y;
41659
41661
  }
41660
- function expand2(str, isTop) {
41662
+ function expand2(str, max, isTop) {
41661
41663
  var expansions = [];
41662
41664
  var m = balanced("{", "}", str);
41663
41665
  if (!m) return [str];
41664
41666
  var pre = m.pre;
41665
- var post = m.post.length ? expand2(m.post, false) : [""];
41667
+ var post = m.post.length ? expand2(m.post, max, false) : [""];
41666
41668
  if (/\$$/.test(m.pre)) {
41667
- for (var k = 0; k < post.length; k++) {
41669
+ for (var k = 0; k < post.length && k < max; k++) {
41668
41670
  var expansion = pre + "{" + m.body + "}" + post[k];
41669
41671
  expansions.push(expansion);
41670
41672
  }
@@ -41676,7 +41678,7 @@ var require_brace_expansion = __commonJS({
41676
41678
  if (!isSequence && !isOptions) {
41677
41679
  if (m.post.match(/,(?!,).*\}/)) {
41678
41680
  str = m.pre + "{" + m.body + escClose + m.post;
41679
- return expand2(str);
41681
+ return expand2(str, max, true);
41680
41682
  }
41681
41683
  return [str];
41682
41684
  }
@@ -41686,7 +41688,7 @@ var require_brace_expansion = __commonJS({
41686
41688
  } else {
41687
41689
  n = parseCommaParts(m.body);
41688
41690
  if (n.length === 1) {
41689
- n = expand2(n[0], false).map(embrace);
41691
+ n = expand2(n[0], max, false).map(embrace);
41690
41692
  if (n.length === 1) {
41691
41693
  return post.map(function(p) {
41692
41694
  return m.pre + n[0] + p;
@@ -41708,7 +41710,7 @@ var require_brace_expansion = __commonJS({
41708
41710
  }
41709
41711
  var pad = n.some(isPadded);
41710
41712
  N = [];
41711
- for (var i = x; test(i, y); i += incr) {
41713
+ for (var i = x; test(i, y) && N.length < max; i += incr) {
41712
41714
  var c;
41713
41715
  if (isAlphaSequence) {
41714
41716
  c = String.fromCharCode(i);
@@ -41732,11 +41734,11 @@ var require_brace_expansion = __commonJS({
41732
41734
  } else {
41733
41735
  N = [];
41734
41736
  for (var j = 0; j < n.length; j++) {
41735
- N.push.apply(N, expand2(n[j], false));
41737
+ N.push.apply(N, expand2(n[j], max, false));
41736
41738
  }
41737
41739
  }
41738
41740
  for (var j = 0; j < N.length; j++) {
41739
- for (var k = 0; k < post.length; k++) {
41741
+ for (var k = 0; k < post.length && expansions.length < max; k++) {
41740
41742
  var expansion = pre + N[j] + post[k];
41741
41743
  if (!isTop || isSequence || expansion)
41742
41744
  expansions.push(expansion);
@@ -82166,7 +82168,7 @@ var init_zod2 = __esm({
82166
82168
  function isCanvasDecisionAnnotation(annotation) {
82167
82169
  return annotation.kind == null || annotation.kind === CANVAS_ANNOTATION_KIND_DECISION;
82168
82170
  }
82169
- var CANVAS_ANNOTATION_KIND_ELEMENT, CANVAS_ANNOTATION_KIND_DECISION, CANVAS_ANNOTATION_KIND_VALUES, CANVAS_ANNOTATION_STATUS_VALUES, CANVAS_ANNOTATION_ANCHOR_STATE_VALUES, CANVAS_ANNOTATION_ANCHOR_SOURCE_VALUES, CANVAS_ANNOTATION_HEADLINE_MAX_LENGTH, uuidSchema, optionalCanvasTextSchema, canvasBboxCoordinateSchema, optionalIsoDateSchema, createCanvasAnnotationInputSchema, CANVAS_ANNOTATION_CHANGE_EVENT_TYPES, CANVAS_PAGE_CHANGE_EVENT_TYPES, CANVAS_THREAD_CHANGE_EVENT_TYPES, CANVAS_CHANGE_EVENT_TYPES;
82171
+ var CANVAS_ANNOTATION_KIND_ELEMENT, CANVAS_ANNOTATION_KIND_DECISION, CANVAS_ANNOTATION_KIND_VALUES, CANVAS_ANNOTATION_STATUS_VALUES, CANVAS_ANNOTATION_ANCHOR_STATE_VALUES, CANVAS_ANNOTATION_ANCHOR_SOURCE_VALUES, CANVAS_ANNOTATION_HEADLINE_MAX_LENGTH, uuidSchema, optionalCanvasTextSchema, canvasBboxCoordinateSchema, optionalIsoDateSchema, createCanvasAnnotationInputSchema, CANVAS_ANNOTATION_CHANGE_EVENT_TYPES, CANVAS_PAGE_CHANGE_EVENT_TYPES, CANVAS_REPLY_CHANGE_EVENT_TYPES, CANVAS_THREAD_CHANGE_EVENT_TYPES, CANVAS_CHANGE_EVENT_TYPES;
82170
82172
  var init_types4 = __esm({
82171
82173
  "../../libs/shared/src/decisionCanvas/types.ts"() {
82172
82174
  "use strict";
@@ -82229,10 +82231,12 @@ var init_types4 = __esm({
82229
82231
  "annotation-reopened"
82230
82232
  ];
82231
82233
  CANVAS_PAGE_CHANGE_EVENT_TYPES = ["page-added", "page-removed", "page-reordered", "page-updated"];
82234
+ CANVAS_REPLY_CHANGE_EVENT_TYPES = ["reply-created", "reply-updated", "reply-deleted"];
82232
82235
  CANVAS_THREAD_CHANGE_EVENT_TYPES = ["thread-linked", "thread-unlinked"];
82233
82236
  CANVAS_CHANGE_EVENT_TYPES = [
82234
82237
  ...CANVAS_ANNOTATION_CHANGE_EVENT_TYPES,
82235
82238
  ...CANVAS_PAGE_CHANGE_EVENT_TYPES,
82239
+ ...CANVAS_REPLY_CHANGE_EVENT_TYPES,
82236
82240
  "canvas-created",
82237
82241
  "canvas-updated",
82238
82242
  ...CANVAS_THREAD_CHANGE_EVENT_TYPES
@@ -82608,7 +82612,7 @@ function registerMcpTools(server2, loader, getScope, onToolInvoked) {
82608
82612
  title: "Apply Decision",
82609
82613
  description: "Get a resolved decision with a screenshot and implementation instructions. Returns everything needed to implement the code change: decision context, element targeting, page screenshot, and step-by-step instructions. Use get_decision_detail only when you need a cropped element image or thread context.",
82610
82614
  inputSchema: { id: external_exports.string().describe("Decision ID from list_decisions") },
82611
- annotations: { readOnlyHint: true, destructiveHint: false }
82615
+ annotations: { readOnlyHint: false, destructiveHint: false }
82612
82616
  },
82613
82617
  async ({ id }) => {
82614
82618
  onToolInvoked?.("apply_decision");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lace-mcp",
3
- "version": "0.0.2-alpha.16",
3
+ "version": "0.0.2-alpha.17",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist/cli.js",