@twin.org/nft-cli 0.0.3-next.2 → 0.0.3-next.4

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/README.md CHANGED
@@ -1,16 +1,16 @@
1
1
  # TWIN NFT CLI
2
2
 
3
- A command line interface for interacting with the nft connectors.
3
+ This application provides command line workflows for creating, resolving, transferring, and burning NFTs in local and network-backed environments. It is intended for developer tooling, scripted operations, and operational checks.
4
4
 
5
5
  ## Installation
6
6
 
7
7
  ```shell
8
- npm install @twin.org/nft-cli
8
+ npm install @twin.org/nft-cli -D
9
9
  ```
10
10
 
11
- ## Examples
11
+ ## Usage
12
12
 
13
- Usage of the tool is shown in the examples [docs/examples.md](docs/examples.md)
13
+ Usage of the tool is shown in the examples [docs/usage.md](docs/usage.md)
14
14
 
15
15
  ## Reference
16
16
 
package/dist/es/cli.js CHANGED
@@ -25,7 +25,7 @@ export class CLI extends CLIBase {
25
25
  return this.execute({
26
26
  title: "TWIN NFT",
27
27
  appName: "twin-nft",
28
- version: "0.0.3-next.2", // x-release-please-version
28
+ version: "0.0.3-next.4", // x-release-please-version
29
29
  icon: "🌍",
30
30
  supportsEnvFiles: true,
31
31
  overrideOutputWidth: options?.overrideOutputWidth,
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE;;GAEG;AACH,MAAM,OAAO,GAAI,SAAQ,OAAO;IAC/B;;;;;;;OAOG;IACI,KAAK,CAAC,GAAG,CACf,IAAc,EACd,gBAAyB,EACzB,OAA0C;QAE1C,OAAO,IAAI,CAAC,OAAO,CAClB;YACC,KAAK,EAAE,UAAU;YACjB,OAAO,EAAE,UAAU;YACnB,OAAO,EAAE,cAAc,EAAE,2BAA2B;YACpD,IAAI,EAAE,IAAI;YACV,gBAAgB,EAAE,IAAI;YACtB,mBAAmB,EAAE,OAAO,EAAE,mBAAmB;YACjD,kBAAkB,EAAE,IAAI;SACxB,EACD,gBAAgB,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,YAAY,CAAC,EACzF,IAAI,CACJ,CAAC;IACH,CAAC;IAED;;;;OAIG;IACO,WAAW,CAAC,OAAgB;QACrC,OAAO;YACN,oBAAoB,EAAE;YACtB,mBAAmB,EAAE;YACrB,kBAAkB,EAAE;YACpB,mBAAmB,EAAE;YACrB,sBAAsB,EAAE;YACxB,mBAAmB,EAAE;YACrB,uBAAuB,EAAE;SACzB,CAAC;IACH,CAAC;CACD","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport path from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nimport { CLIBase } from \"@twin.org/cli-core\";\nimport { buildCommandAddress, buildCommandMnemonic } from \"@twin.org/crypto-cli\";\nimport { buildCommandFaucet } from \"@twin.org/wallet-cli\";\nimport type { Command } from \"commander\";\nimport { buildCommandNftBurn } from \"./commands/nftBurn.js\";\nimport { buildCommandNftMint } from \"./commands/nftMint.js\";\nimport { buildCommandNftResolve } from \"./commands/nftResolve.js\";\nimport { buildCommandNftTransfer } from \"./commands/nftTransfer.js\";\n\n/**\n * The main entry point for the CLI.\n */\nexport class CLI extends CLIBase {\n\t/**\n\t * Run the app.\n\t * @param argv The process arguments.\n\t * @param localesDirectory The directory for the locales, default to relative to the script.\n\t * @param options Additional options for the CLI.\n\t * @param options.overrideOutputWidth Override the output width.\n\t * @returns The exit code.\n\t */\n\tpublic async run(\n\t\targv: string[],\n\t\tlocalesDirectory?: string,\n\t\toptions?: { overrideOutputWidth?: number }\n\t): Promise<number> {\n\t\treturn this.execute(\n\t\t\t{\n\t\t\t\ttitle: \"TWIN NFT\",\n\t\t\t\tappName: \"twin-nft\",\n\t\t\t\tversion: \"0.0.3-next.2\", // x-release-please-version\n\t\t\t\ticon: \"🌍\",\n\t\t\t\tsupportsEnvFiles: true,\n\t\t\t\toverrideOutputWidth: options?.overrideOutputWidth,\n\t\t\t\tshowDevToolWarning: true\n\t\t\t},\n\t\t\tlocalesDirectory ?? path.join(path.dirname(fileURLToPath(import.meta.url)), \"../locales\"),\n\t\t\targv\n\t\t);\n\t}\n\n\t/**\n\t * Get the commands for the CLI.\n\t * @param program The main program to add the commands to.\n\t * @internal\n\t */\n\tprotected getCommands(program: Command): Command[] {\n\t\treturn [\n\t\t\tbuildCommandMnemonic(),\n\t\t\tbuildCommandAddress(),\n\t\t\tbuildCommandFaucet(),\n\t\t\tbuildCommandNftMint(),\n\t\t\tbuildCommandNftResolve(),\n\t\t\tbuildCommandNftBurn(),\n\t\t\tbuildCommandNftTransfer()\n\t\t];\n\t}\n}\n"]}
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE;;GAEG;AACH,MAAM,OAAO,GAAI,SAAQ,OAAO;IAC/B;;;;;;;OAOG;IACI,KAAK,CAAC,GAAG,CACf,IAAc,EACd,gBAAyB,EACzB,OAA0C;QAE1C,OAAO,IAAI,CAAC,OAAO,CAClB;YACC,KAAK,EAAE,UAAU;YACjB,OAAO,EAAE,UAAU;YACnB,OAAO,EAAE,cAAc,EAAE,2BAA2B;YACpD,IAAI,EAAE,IAAI;YACV,gBAAgB,EAAE,IAAI;YACtB,mBAAmB,EAAE,OAAO,EAAE,mBAAmB;YACjD,kBAAkB,EAAE,IAAI;SACxB,EACD,gBAAgB,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,YAAY,CAAC,EACzF,IAAI,CACJ,CAAC;IACH,CAAC;IAED;;;;OAIG;IACO,WAAW,CAAC,OAAgB;QACrC,OAAO;YACN,oBAAoB,EAAE;YACtB,mBAAmB,EAAE;YACrB,kBAAkB,EAAE;YACpB,mBAAmB,EAAE;YACrB,sBAAsB,EAAE;YACxB,mBAAmB,EAAE;YACrB,uBAAuB,EAAE;SACzB,CAAC;IACH,CAAC;CACD","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport path from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nimport { CLIBase } from \"@twin.org/cli-core\";\nimport { buildCommandAddress, buildCommandMnemonic } from \"@twin.org/crypto-cli\";\nimport { buildCommandFaucet } from \"@twin.org/wallet-cli\";\nimport type { Command } from \"commander\";\nimport { buildCommandNftBurn } from \"./commands/nftBurn.js\";\nimport { buildCommandNftMint } from \"./commands/nftMint.js\";\nimport { buildCommandNftResolve } from \"./commands/nftResolve.js\";\nimport { buildCommandNftTransfer } from \"./commands/nftTransfer.js\";\n\n/**\n * The main entry point for the CLI.\n */\nexport class CLI extends CLIBase {\n\t/**\n\t * Run the app.\n\t * @param argv The process arguments.\n\t * @param localesDirectory The directory for the locales, default to relative to the script.\n\t * @param options Additional options for the CLI.\n\t * @param options.overrideOutputWidth Override the output width.\n\t * @returns The exit code.\n\t */\n\tpublic async run(\n\t\targv: string[],\n\t\tlocalesDirectory?: string,\n\t\toptions?: { overrideOutputWidth?: number }\n\t): Promise<number> {\n\t\treturn this.execute(\n\t\t\t{\n\t\t\t\ttitle: \"TWIN NFT\",\n\t\t\t\tappName: \"twin-nft\",\n\t\t\t\tversion: \"0.0.3-next.4\", // x-release-please-version\n\t\t\t\ticon: \"🌍\",\n\t\t\t\tsupportsEnvFiles: true,\n\t\t\t\toverrideOutputWidth: options?.overrideOutputWidth,\n\t\t\t\tshowDevToolWarning: true\n\t\t\t},\n\t\t\tlocalesDirectory ?? path.join(path.dirname(fileURLToPath(import.meta.url)), \"../locales\"),\n\t\t\targv\n\t\t);\n\t}\n\n\t/**\n\t * Get the commands for the CLI.\n\t * @param program The main program to add the commands to.\n\t * @internal\n\t */\n\tprotected getCommands(program: Command): Command[] {\n\t\treturn [\n\t\t\tbuildCommandMnemonic(),\n\t\t\tbuildCommandAddress(),\n\t\t\tbuildCommandFaucet(),\n\t\t\tbuildCommandNftMint(),\n\t\t\tbuildCommandNftResolve(),\n\t\t\tbuildCommandNftBurn(),\n\t\t\tbuildCommandNftTransfer()\n\t\t];\n\t}\n}\n"]}
@@ -206,6 +206,12 @@
206
206
  "gasStationTransactionFailed": "The gas station transaction failed",
207
207
  "dryRunFailed": "The dry run execution failed"
208
208
  },
209
+ "iotaIdentityUtils": {
210
+ "getControllerCapInfoFailed": "Getting the controller capability info for the identity failed",
211
+ "identityNotFound": "The identity could not be found \"{notFoundId}\"",
212
+ "identityDeleted": "The identity \"{identityId}\" has been deleted and cannot be used for minting",
213
+ "controllerTokenNotFound": "No controller token found for the identity \"{notFoundId}\" with the provided controller address"
214
+ },
209
215
  "iotaSmartContractUtils": {
210
216
  "migrationFailed": "Smart contract migration failed",
211
217
  "migrateSmartContractFailed": "Failed to migrate smart contract for object \"{objectId}\"",
package/docs/changelog.md CHANGED
@@ -1,4 +1,32 @@
1
- # @twin.org/nft-cli - Changelog
1
+ # Changelog
2
+
3
+ ## [0.0.3-next.4](https://github.com/twinfoundation/nft/compare/nft-cli-v0.0.3-next.3...nft-cli-v0.0.3-next.4) (2026-04-20)
4
+
5
+
6
+ ### Miscellaneous Chores
7
+
8
+ * **nft-cli:** Synchronize repo versions
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/nft-connector-iota bumped from 0.0.3-next.3 to 0.0.3-next.4
16
+
17
+ ## [0.0.3-next.3](https://github.com/twinfoundation/nft/compare/nft-cli-v0.0.3-next.2...nft-cli-v0.0.3-next.3) (2026-03-03)
18
+
19
+
20
+ ### Miscellaneous Chores
21
+
22
+ * **nft-cli:** Synchronize repo versions
23
+
24
+
25
+ ### Dependencies
26
+
27
+ * The following workspace dependencies were updated
28
+ * dependencies
29
+ * @twin.org/nft-connector-iota bumped from 0.0.3-next.2 to 0.0.3-next.3
2
30
 
3
31
  ## [0.0.3-next.2](https://github.com/twinfoundation/nft/compare/nft-cli-v0.0.3-next.1...nft-cli-v0.0.3-next.2) (2026-02-25)
4
32
 
@@ -22,7 +22,7 @@ The main entry point for the CLI.
22
22
 
23
23
  ## Methods
24
24
 
25
- ### run()
25
+ ### run() {#run}
26
26
 
27
27
  > **run**(`argv`, `localesDirectory?`, `options?`): `Promise`\<`number`\>
28
28
 
@@ -1,4 +1,6 @@
1
- # @twin.org/nft-cli - Examples
1
+ # NFT CLI Usage
2
+
3
+ Use these commands to run the CLI locally and check available NFT operations before wiring them into scripts or CI pipelines.
2
4
 
3
5
  ## Running
4
6
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@twin.org/nft-cli",
3
- "version": "0.0.3-next.2",
4
- "description": "A command line interface for interacting with the nft connectors",
3
+ "version": "0.0.3-next.4",
4
+ "description": "Command line application for running end-to-end NFT operations.",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/twinfoundation/nft.git",
@@ -21,12 +21,12 @@
21
21
  "@twin.org/entity": "next",
22
22
  "@twin.org/entity-storage-connector-memory": "next",
23
23
  "@twin.org/nameof": "next",
24
- "@twin.org/nft-connector-iota": "0.0.3-next.2",
24
+ "@twin.org/nft-connector-iota": "0.0.3-next.4",
25
25
  "@twin.org/vault-connector-entity-storage": "next",
26
26
  "@twin.org/vault-models": "next",
27
27
  "@twin.org/wallet-cli": "next",
28
28
  "@twin.org/wallet-models": "next",
29
- "commander": "14.0.2"
29
+ "commander": "14.0.3"
30
30
  },
31
31
  "main": "./dist/es/index.js",
32
32
  "types": "./dist/types/index.d.ts",