@settlemint/dalp-cli 2.1.2

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 (4) hide show
  1. package/LICENSE +162 -0
  2. package/README.md +141 -0
  3. package/dist/dalp.js +75588 -0
  4. package/package.json +56 -0
package/LICENSE ADDED
@@ -0,0 +1,162 @@
1
+ # SETTLEMINT COMMERCIAL CUSTOMER SOURCE LICENSE
2
+
3
+ **("License")**
4
+
5
+ ---
6
+
7
+ ## TL;DR (NON-BINDING SUMMARY)
8
+
9
+ - You may view, fork, modify, and run this code ONLY while you have an active, paid contract with SettleMint.
10
+ - You may use it internally (cloud, on-prem, or hybrid) only as agreed in your contract.
11
+ - You may NOT resell it, offer it as a service, publish it, or use it to build or operate a competing product.
12
+ - When your contract ends, your right to use the software ends immediately. You must stop all deployments and delete active copies.
13
+ - This is NOT open source.
14
+
15
+ *This summary is informational only. The legal terms below control.*
16
+
17
+ ---
18
+
19
+ Copyright © 2025 SettleMint NV
20
+ All rights reserved.
21
+
22
+ This License governs the use of the Software (as defined below) and is a proprietary, source-available license. It is not an open-source license.
23
+
24
+ By accessing, copying, modifying, or using the Software, You agree to be bound by this License and confirm that You are a Customer with an Active Contract.
25
+
26
+ ---
27
+
28
+ ## 1. DEFINITIONS
29
+
30
+ **1.1 "Licensor"**
31
+ SettleMint NV, a company incorporated under Belgian law, or any affiliated entity explicitly identified in the applicable Commercial Agreement.
32
+
33
+ **1.2 "Customer" or "You"**
34
+ The legal entity that has entered into an Active Contract with Licensor and whose employees or contractors access or use the Software.
35
+
36
+ **1.3 "Commercial Agreement"**
37
+ Any master services agreement, subscription agreement, order form, statement of work, or similar contract executed between Licensor and Customer governing commercial terms.
38
+
39
+ **1.4 "Active Contract"**
40
+ A Commercial Agreement that is in force, not terminated, and for which all undisputed fees due are paid.
41
+
42
+ **1.5 "Software"**
43
+ The source code, object code, build scripts, configuration files, documentation, and any other materials made available by Licensor in this repository, including all updates and modifications thereto.
44
+
45
+ **1.6 "Derivative Works"**
46
+ Any modification, adaptation, translation, or other work based on or incorporating the Software, as defined under Book XI of the Belgian Code of Economic Law.
47
+
48
+ **1.7 "Authorized Use"**
49
+ Use of the Software solely for Customer's internal business purposes and strictly within the scope permitted by the Active Contract.
50
+
51
+ **1.8 "Authorized Deployment"**
52
+ Any installation, environment, system, blockchain network, cluster, or runtime explicitly permitted under the Active Contract, whether cloud-based, on-premises, or hybrid.
53
+
54
+ **1.9 "Competitive Use"**
55
+ Any use of the Software or Derivative Works to develop, operate, market, or support a product or service that competes with Licensor's products or services, or that could reasonably substitute for them.
56
+
57
+ ---
58
+
59
+ ## 2. LICENSE GRANT
60
+
61
+ **2.1 Conditional License Grant**
62
+ Subject to continuous compliance with this License and the existence of an Active Contract, Licensor grants Customer a limited, non-exclusive, non-transferable, non-sublicensable, revocable license to:
63
+
64
+ (a) access and review the Software;
65
+ (b) copy the Software for internal use;
66
+ (c) modify the Software and create Derivative Works;
67
+ (d) deploy and run the Software and Derivative Works solely for Authorized Use and only in Authorized Deployments.
68
+
69
+ **2.2 Forking**
70
+ Customer may create private forks of the Software solely for Authorized Use. All such forks remain subject to this License.
71
+
72
+ **2.3 No Implied Rights**
73
+ No rights are granted except as expressly stated. All rights not expressly granted are reserved by Licensor.
74
+
75
+ ---
76
+
77
+ ## 3. RESTRICTIONS
78
+
79
+ Customer shall not, directly or indirectly:
80
+
81
+ (a) use the Software without an Active Contract;
82
+ (b) deploy the Software outside Authorized Deployments;
83
+ (c) provide the Software or any Derivative Work as a service, platform, or product to third parties, unless explicitly permitted in writing;
84
+ (d) sublicense, distribute, sell, lease, or transfer the Software or any Derivative Work to any third party;
85
+ (e) engage in any Competitive Use;
86
+ (f) use the Software to benchmark, reverse-engineer, or analyze Licensor's products for competitive purposes;
87
+ (g) publish, disclose, or make publicly available the Software or any fork thereof;
88
+ (h) remove or obscure copyright, trademark, or proprietary notices.
89
+
90
+ ---
91
+
92
+ ## 4. OWNERSHIP
93
+
94
+ **4.1 Licensor IP**
95
+ Licensor retains all right, title, and interest in and to the Software.
96
+
97
+ **4.2 Customer Modifications**
98
+ Customer retains ownership of original modifications it creates; however, Customer may not use, execute, deploy, or distribute any Derivative Work that includes or depends on the Software except as permitted under an Active Contract.
99
+
100
+ **4.3 Feedback and Contributions**
101
+ Any feedback, suggestions, or contributions provided by Customer may be used by Licensor without restriction. To the extent such contributions constitute copyrightable works, Customer grants Licensor a perpetual, worldwide, royalty-free, irrevocable license to use, modify, and distribute them.
102
+
103
+ ---
104
+
105
+ ## 5. TERMINATION
106
+
107
+ **5.1 Automatic Termination**
108
+ This License automatically terminates upon termination or expiration of the Active Contract.
109
+
110
+ **5.2 Effect of Termination**
111
+ Upon termination, Customer must immediately:
112
+
113
+ (a) cease all use and deployment of the Software and Derivative Works;
114
+ (b) delete all running instances, binaries, containers, and deployments;
115
+ (c) destroy or delete all copies of the Software, except that one archival copy of source code may be retained solely for legal or compliance purposes.
116
+
117
+ No right to resume use or deployment survives termination.
118
+
119
+ **5.3 Survival**
120
+ Sections relating to ownership, restrictions, liability, governing law, and jurisdiction survive termination.
121
+
122
+ ---
123
+
124
+ ## 6. WARRANTY DISCLAIMER
125
+
126
+ THE SOFTWARE IS PROVIDED "AS IS". TO THE MAXIMUM EXTENT PERMITTED BY BELGIAN LAW, LICENSOR DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
127
+
128
+ ---
129
+
130
+ ## 7. LIMITATION OF LIABILITY
131
+
132
+ To the maximum extent permitted by Belgian law, Licensor shall not be liable for any indirect, incidental, consequential, or special damages, including loss of profits, data, or business interruption, even if advised of the possibility.
133
+
134
+ Nothing in this License limits liability that cannot be limited under mandatory Belgian law.
135
+
136
+ ---
137
+
138
+ ## 8. GOVERNING LAW AND JURISDICTION
139
+
140
+ This License is governed by and construed in accordance with the laws of Belgium, excluding conflict-of-law rules.
141
+
142
+ Any dispute arising out of or in connection with this License shall be subject to the exclusive jurisdiction of the courts of Brussels.
143
+
144
+ ---
145
+
146
+ ## 9. MISCELLANEOUS
147
+
148
+ **9.1 Entire Agreement**
149
+ This License, together with the applicable Commercial Agreement, constitutes the entire agreement regarding the Software.
150
+
151
+ **9.2 Conflict**
152
+ In case of conflict, the Commercial Agreement prevails.
153
+
154
+ **9.3 Severability**
155
+ If any provision is held invalid, the remaining provisions remain in full force.
156
+
157
+ **9.4 No Waiver**
158
+ Failure to enforce any provision does not constitute a waiver.
159
+
160
+ ---
161
+
162
+ **END OF LICENSE**
package/README.md ADDED
@@ -0,0 +1,141 @@
1
+ <p align="center">
2
+ <img src="https://github.com/settlemint/sdk/blob/main/logo.svg" width="200px" align="center" alt="SettleMint logo" />
3
+ <h1 align="center">DALP CLI</h1>
4
+ <p align="center">
5
+ <a href="https://settlemint.com">https://settlemint.com</a>
6
+ <br/>
7
+ Command-line interface for the Digital Asset Lifecycle Platform.
8
+ </p>
9
+ </p>
10
+
11
+ <p align="center">
12
+ <a href="https://www.npmjs.com/package/@settlemint/dalp-cli" rel="nofollow"><img src="https://img.shields.io/npm/v/@settlemint/dalp-cli" alt="npm version"></a>
13
+ <a href="https://www.npmjs.com/package/@settlemint/dalp-cli" rel="nofollow"><img src="https://img.shields.io/npm/dw/@settlemint/dalp-cli" alt="npm downloads"></a>
14
+ </p>
15
+
16
+ <div align="center">
17
+ <a href="https://settlemint.com">Website</a>
18
+ <span>&nbsp;&nbsp;&bull;&nbsp;&nbsp;</span>
19
+ <a href="https://www.npmjs.com/package/@settlemint/dalp-cli">NPM</a>
20
+ <span>&nbsp;&nbsp;&bull;&nbsp;&nbsp;</span>
21
+ <a href="mailto:support@settlemint.com">Support</a>
22
+ <br />
23
+ </div>
24
+
25
+ ## About
26
+
27
+ The DALP CLI provides a command-line interface for interacting with the Digital Asset Lifecycle Platform. Manage security tokens, identities, compliance, and platform operations directly from the terminal — or let your AI agent do it for you.
28
+
29
+ ## Installation
30
+
31
+ ```bash
32
+ # npm
33
+ npm install -g @settlemint/dalp-cli
34
+
35
+ # bun
36
+ bun add -g @settlemint/dalp-cli
37
+ ```
38
+
39
+ ## Quick Start
40
+
41
+ ```bash
42
+ # Authenticate (OAuth 2.0 device flow — no passwords in your terminal)
43
+ dalp login
44
+
45
+ # Show current user
46
+ dalp whoami
47
+
48
+ # List all tokens
49
+ dalp token list --format json
50
+ ```
51
+
52
+ ## AI Agent Integration
53
+
54
+ The CLI is built from the ground up for AI agents. Every command is a typed, validated tool that agents can discover and call autonomously.
55
+
56
+ ### Model Context Protocol (MCP)
57
+
58
+ Run the CLI as an MCP server, exposing every command as a tool with Zod-validated parameters, descriptions, and examples:
59
+
60
+ ```bash
61
+ # Auto-register with your AI agent (Claude Code, Cursor, Codex, OpenClaw)
62
+ dalp mcp add
63
+
64
+ # Or run the MCP server directly
65
+ dalp --mcp
66
+ ```
67
+
68
+ ### Skills
69
+
70
+ Auto-generate skill files from command metadata for agent discovery:
71
+
72
+ ```bash
73
+ # Install skill files for your agent
74
+ dalp skills add
75
+
76
+ # View as Markdown or JSON Schema
77
+ dalp --llms
78
+ dalp --schema
79
+ ```
80
+
81
+ ### Structured Output
82
+
83
+ Every command supports `--format json` for machine-readable output, making it composable with shell tools and agent workflows:
84
+
85
+ ```bash
86
+ # Progressive discovery: system → tokens → holders
87
+ dalp system info --format json
88
+ dalp token list --format json
89
+ dalp token holders <address> --format json
90
+ ```
91
+
92
+ ### Supported Agents
93
+
94
+ Auto-detection and one-command setup for Claude Code, Codex Desktop, Cursor, and OpenClaw.
95
+
96
+ ## Commands
97
+
98
+ | Command | Description |
99
+ |---------|-------------|
100
+ | `login` | Authenticate with the DALP platform |
101
+ | `logout` | End the current session |
102
+ | `whoami` | Show the current authenticated user |
103
+ | `token` | Manage security tokens |
104
+ | `token-sale` | Manage token sales |
105
+ | `token-documents` | Manage token-related documents |
106
+ | `identity` | Manage on-chain identities |
107
+ | `identity-recovery` | Recover lost identities |
108
+ | `kyc` | Manage KYC verification |
109
+ | `compliance-template` | Manage compliance templates |
110
+ | `asset-type-template` | Manage asset type templates |
111
+ | `user` | Manage platform users |
112
+ | `contact` | Manage contacts |
113
+ | `account` | Manage accounts |
114
+ | `admin` | Administrative operations |
115
+ | `auth` | Authentication configuration |
116
+ | `config` | CLI configuration |
117
+ | `exchange-rates` | View exchange rates |
118
+ | `external-token` | Manage external tokens |
119
+ | `fixed-yield` | Manage fixed yield instruments |
120
+ | `monitoring` | Platform monitoring |
121
+ | `search` | Search across the platform |
122
+ | `settings` | Platform settings |
123
+ | `system` | System administration |
124
+ | `transaction` | View transactions |
125
+ | `xvp` | Cross-value-payment operations |
126
+ | `actions` | Manage actions |
127
+
128
+ ## Security
129
+
130
+ - **OAuth 2.0 Device Authorization Grant** (RFC 8628) — no passwords in your terminal
131
+ - Credentials stored in system keychain (macOS) or encrypted file (Linux/Windows)
132
+ - API key auto-creation during login
133
+ - Agents operate with your user permissions only
134
+
135
+ ## Configuration
136
+
137
+ The CLI resolves configuration from (in order): CLI flags, environment variables, project config (`.dalprc.json`), and user config (`~/.config/dalp/`).
138
+
139
+ ## License
140
+
141
+ This project is licensed under the **SettleMint Commercial Customer Source License**. See the LICENSE file included in the package for full terms.