@tini-works/inv-node 0.1.7 → 0.1.9

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 +0 -16
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1357,22 +1357,6 @@ class WSHandlers {
1357
1357
  askerNode: envelope.fromNode,
1358
1358
  question: payload.question
1359
1359
  });
1360
- if (this.sendFn) {
1361
- const nodes = this.store.listNodes(envelope.projectId);
1362
- const allItems = nodes.flatMap((n) => this.store.listItems(n.id));
1363
- const summary = allItems.map((i) => ({
1364
- id: i.id,
1365
- kind: i.kind,
1366
- title: i.title,
1367
- state: i.state,
1368
- externalRef: i.externalRef || undefined
1369
- }));
1370
- this.sendFn(envelope.fromNode, {
1371
- type: "query_respond",
1372
- answer: JSON.stringify({ items: summary, count: summary.length }),
1373
- responderId: payload.askerId
1374
- });
1375
- }
1376
1360
  } catch (err) {
1377
1361
  const message = err instanceof Error ? err.message : String(err);
1378
1362
  this.eventBus.emit("error", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tini-works/inv-node",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "bin": {
5
5
  "inv-node": "./dist/cli.js"
6
6
  },