@settlemint/dalp-cli 3.1.32-main.42894513068 → 3.1.32-main.42904215559

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@settlemint/dalp-cli",
3
- "version": "3.1.32-main.42894513068",
3
+ "version": "3.1.32-main.42904215559",
4
4
  "private": false,
5
5
  "description": "CLI for the Digital Asset Lifecycle Platform — manage tokens, identities, compliance, and more from the command line.",
6
6
  "homepage": "https://settlemint.com",
@@ -50,14 +50,14 @@
50
50
  },
51
51
  "dependencies": {
52
52
  "@modelcontextprotocol/server": "2.4.0",
53
- "@settlemint/dalp-sdk": "3.1.32-main.42894513068",
53
+ "@settlemint/dalp-sdk": "3.1.32-main.42904215559",
54
54
  "incur": "0.7.1",
55
55
  "zod": "4.6.7"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@arethetypeswrong/cli": "0.18.5",
59
- "@testkit/effect-bun-test": "3.1.32-main.42894513068",
60
- "@tools/typescript-config": "3.1.32-main.42894513068",
59
+ "@testkit/effect-bun-test": "3.1.32-main.42904215559",
60
+ "@tools/typescript-config": "3.1.32-main.42904215559",
61
61
  "@types/bun": "1.4.4",
62
62
  "publint": "0.3.25"
63
63
  },
@@ -63,13 +63,8 @@ export interface CommandTreeNode {
63
63
  operations: Array<OperationDescriptor>;
64
64
  }
65
65
 
66
- const isSseResult = (value: unknown): value is { readonly stream: AsyncIterable<unknown> } => {
67
- if (typeof value !== "object" || value === null || !("stream" in value)) {
68
- return false;
69
- }
70
- const stream = Reflect.get(value, "stream");
71
- return typeof stream === "object" && stream !== null && Symbol.asyncIterator in stream;
72
- };
66
+ const isSseResult = (value: unknown): value is AsyncIterable<unknown> =>
67
+ typeof value === "object" && value !== null && Symbol.asyncIterator in value;
73
68
 
74
69
  function pickPrimaryOp(ops: ReadonlyArray<OperationDescriptor>): OperationDescriptor {
75
70
  return [...ops].sort((left, right) => right.surface.pathParams.length - left.surface.pathParams.length)[0]!;
@@ -473,7 +468,7 @@ function makeLeafHandler(ops: ReadonlyArray<OperationDescriptor>) {
473
468
  yield streamEvent;
474
469
  }
475
470
  try {
476
- for await (const chunk of result.stream) {
471
+ for await (const chunk of result) {
477
472
  yield chunk;
478
473
  }
479
474
  } catch (streamError) {