@sinch/cli 0.4.0 → 0.4.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.
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@sinch/cli",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "Official Sinch CLI - Manage all Sinch products from your terminal",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
7
- "sinch": "bin/sinch"
7
+ "sinch": "bin/sinch",
8
+ "s": "bin/s"
8
9
  },
9
10
  "scripts": {
10
11
  "start": "tsx src/index.ts",
@@ -47,22 +48,30 @@
47
48
  "@opentelemetry/resources": "^2.5.1",
48
49
  "@opentelemetry/sdk-node": "^0.212.0",
49
50
  "@opentelemetry/semantic-conventions": "^1.39.0",
51
+ "@opentui/core": "^0.1.87",
50
52
  "@sinch/sdk-core": "^1.2.1",
51
53
  "adm-zip": "^0.5.10",
52
54
  "axios": "^1.13.3",
53
55
  "axios-retry": "^4.5.0",
54
- "blessed": "^0.1.81",
55
56
  "chalk": "^4.1.2",
56
57
  "cli-table3": "^0.6.3",
57
58
  "clipboardy": "^5.1.0",
58
59
  "commander": "^14.0.0",
59
60
  "form-data": "^4.0.0",
60
61
  "fs-extra": "^11.3.3",
61
- "google-libphonenumber": "^3.2.44"
62
+ "google-libphonenumber": "^3.2.44",
63
+ "stage-js": "^1.0.1"
64
+ },
65
+ "optionalDependencies": {
66
+ "@opentui/core-linux-x64": "^0.1.87",
67
+ "@opentui/core-linux-arm64": "^0.1.87",
68
+ "@opentui/core-darwin-x64": "^0.1.87",
69
+ "@opentui/core-darwin-arm64": "^0.1.87",
70
+ "@opentui/core-win32-x64": "^0.1.87",
71
+ "@opentui/core-win32-arm64": "^0.1.87"
62
72
  },
63
73
  "devDependencies": {
64
74
  "@types/adm-zip": "^0.5.7",
65
- "@types/blessed": "^0.1.25",
66
75
  "@types/fs-extra": "^11.0.4",
67
76
  "@types/google-libphonenumber": "^7.4.30",
68
77
  "@types/jest": "^30.0.0",
@@ -62,10 +62,9 @@ async function setup() {
62
62
 
63
63
  console.log('\n✨ Setup complete!\n');
64
64
  console.log('Commands:');
65
- console.log(' s → Fast Bun binary (for daily use)');
66
- console.log(' sf <cmd> → Shortcut for "s functions <cmd>"');
65
+ console.log(' sinch <cmd> → Fast Bun binary (for daily use)');
66
+ console.log(' sf <cmd> → Shortcut for "sinch functions <cmd>"');
67
67
  console.log(' sd <cmd> → Dev version via npm link (for CLI development)');
68
- console.log(' sinch <cmd> → Same as sd (npm-linked)');
69
68
  console.log('');
70
69
 
71
70
  if (process.platform === 'win32') {
@@ -81,9 +80,9 @@ async function setupPowerShell() {
81
80
 
82
81
  const profileSnippet = `
83
82
  # ── Sinch CLI aliases (auto-generated by sinch-cli setup) ──
84
- function s { & "$env:USERPROFILE\\.sinch\\bin\\sinch.exe" @args }
85
- function sf { & "$env:USERPROFILE\\.sinch\\bin\\sinch.exe" functions @args }
86
- function sd { & sinch @args }
83
+ function sinch { & "$env:USERPROFILE\\.sinch\\bin\\sinch.exe" @args }
84
+ function sf { sinch functions @args }
85
+ function sd { & sinch.cmd @args }
87
86
  # ── End Sinch CLI aliases ──
88
87
  `.trim();
89
88
 
@@ -124,9 +123,9 @@ async function setupShell() {
124
123
 
125
124
  const snippet = `
126
125
  # ── Sinch CLI aliases (auto-generated by sinch-cli setup) ──
127
- alias s='$HOME/.sinch/bin/sinch'
128
- sf() { $HOME/.sinch/bin/sinch functions "$@"; }
129
- alias sd='sinch'
126
+ alias sinch='$HOME/.sinch/bin/sinch'
127
+ sf() { sinch functions "$@"; }
128
+ sd() { command sinch "$@"; }
130
129
  # ── End Sinch CLI aliases ──
131
130
  `.trim();
132
131