toolcraft 0.0.155 → 0.0.157

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/composition.json CHANGED
@@ -113,7 +113,7 @@
113
113
  },
114
114
  {
115
115
  "name": "toolcraft",
116
- "version": "0.0.155",
116
+ "version": "0.0.157",
117
117
  "license": "MIT"
118
118
  },
119
119
  {
@@ -123,7 +123,7 @@
123
123
  },
124
124
  {
125
125
  "name": "toolcraft-schema",
126
- "version": "0.0.155",
126
+ "version": "0.0.157",
127
127
  "license": "MIT"
128
128
  },
129
129
  {
@@ -113,7 +113,7 @@
113
113
  },
114
114
  {
115
115
  "name": "toolcraft",
116
- "version": "0.0.155",
116
+ "version": "0.0.157",
117
117
  "license": "MIT"
118
118
  },
119
119
  {
@@ -123,7 +123,7 @@
123
123
  },
124
124
  {
125
125
  "name": "toolcraft-schema",
126
- "version": "0.0.155",
126
+ "version": "0.0.157",
127
127
  "license": "MIT"
128
128
  },
129
129
  {
@@ -8,7 +8,7 @@
8
8
  },
9
9
  {
10
10
  "name": "toolcraft-schema",
11
- "version": "0.0.155",
11
+ "version": "0.0.157",
12
12
  "license": "MIT"
13
13
  }
14
14
  ]
@@ -786,14 +786,15 @@ function dispatchAction(state, action, confirmed, runtimeHandles, modalRows) {
786
786
  return mark(state, 0);
787
787
  }
788
788
  if (action.destructive === true && !confirmed) {
789
+ const actionLabel = typeof action.label === "function" ? action.label() : action.label;
789
790
  return {
790
791
  state: {
791
792
  ...state,
792
793
  modal: {
793
794
  kind: "confirm",
794
795
  title: action.destructive ? "Confirm destructive action" : "Confirm action",
795
- message: `${typeof action.label === "function" ? action.label() : action.label} ${rows.length === 1 ? rows[0].title : `${rows.length} items`}?`,
796
- confirmLabel: action.destructive ? "Delete" : "Yes",
796
+ message: `${actionLabel} ${rows.length === 1 ? rows[0].title : `${rows.length} items`}?`,
797
+ confirmLabel: actionLabel,
797
798
  cancelLabel: "Cancel",
798
799
  destructive: action.destructive === true,
799
800
  action,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toolcraft-schema",
3
- "version": "0.0.155",
3
+ "version": "0.0.157",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toolcraft",
3
- "version": "0.0.155",
3
+ "version": "0.0.157",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -158,7 +158,7 @@
158
158
  "yaml"
159
159
  ],
160
160
  "optionalDependencies": {
161
- "toolcraft-schema": "0.0.155",
161
+ "toolcraft-schema": "0.0.157",
162
162
  "toolcraft-design": "*",
163
163
  "@poe-code/frontmatter": "*",
164
164
  "@poe-code/agent-mcp-config": "*",