tygarun 1.0.0

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 (51) hide show
  1. package/LICENSE +54 -0
  2. package/README.md +88 -0
  3. package/bin/cli.js +11 -0
  4. package/dist/api.js +1 -0
  5. package/dist/commands/accounting.js +1 -0
  6. package/dist/commands/ai.js +1 -0
  7. package/dist/commands/analytics.js +1 -0
  8. package/dist/commands/api.js +1 -0
  9. package/dist/commands/auth.js +1 -0
  10. package/dist/commands/banking.js +1 -0
  11. package/dist/commands/billing.js +1 -0
  12. package/dist/commands/channels.js +1 -0
  13. package/dist/commands/community.js +1 -0
  14. package/dist/commands/compliance.js +1 -0
  15. package/dist/commands/contracts.js +1 -0
  16. package/dist/commands/crm.js +1 -0
  17. package/dist/commands/datagrab.js +1 -0
  18. package/dist/commands/domains.js +1 -0
  19. package/dist/commands/ecommerce.js +1 -0
  20. package/dist/commands/elearning.js +1 -0
  21. package/dist/commands/esports.js +1 -0
  22. package/dist/commands/event-ticketing.js +1 -0
  23. package/dist/commands/files.js +1 -0
  24. package/dist/commands/gamification.js +1 -0
  25. package/dist/commands/hmrc.js +1 -0
  26. package/dist/commands/hosting.js +1 -0
  27. package/dist/commands/init.js +1 -0
  28. package/dist/commands/keys.js +1 -0
  29. package/dist/commands/maps.js +1 -0
  30. package/dist/commands/marketplace.js +1 -0
  31. package/dist/commands/news.js +1 -0
  32. package/dist/commands/notifications.js +1 -0
  33. package/dist/commands/pm.js +1 -0
  34. package/dist/commands/recruitment.js +1 -0
  35. package/dist/commands/saas.js +1 -0
  36. package/dist/commands/scheduling.js +1 -0
  37. package/dist/commands/signup.js +1 -0
  38. package/dist/commands/status.js +1 -0
  39. package/dist/commands/support.js +1 -0
  40. package/dist/commands/surveys.js +1 -0
  41. package/dist/commands/teams.js +1 -0
  42. package/dist/commands/users.js +1 -0
  43. package/dist/commands/webhooks.js +1 -0
  44. package/dist/commands/website.js +1 -0
  45. package/dist/commands/widgets.js +1 -0
  46. package/dist/config.js +1 -0
  47. package/dist/format.js +1 -0
  48. package/dist/main.js +1 -0
  49. package/dist/mcp-tools.js +1 -0
  50. package/dist/mcp.js +1 -0
  51. package/package.json +44 -0
package/LICENSE ADDED
@@ -0,0 +1,54 @@
1
+ tyga.run CLI - End User License Agreement
2
+
3
+ Copyright (c) 2026 Tyga.Cloud Ltd. All rights reserved.
4
+
5
+ COMMERCIAL LICENSE — NOT OPEN SOURCE
6
+
7
+ Permission is granted to install and use this software via npm for its
8
+ intended purpose (interacting with the tyga.run platform at tyga.run and
9
+ sdk.tyga.run).
10
+
11
+ You may NOT:
12
+ - Reverse-engineer, decompile, deobfuscate, or disassemble this software
13
+ - Redistribute, sublicense, or resell this software
14
+ - Modify or create derivative works based on this software
15
+ - Remove or alter any copyright notices contained in this software
16
+ - Use this software to build a competing platform or service
17
+ - Use this software outside of its intended purpose (tyga.run SDK access)
18
+
19
+ LIMITATION OF LIABILITY AND INDEMNIFICATION
20
+
21
+ TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL
22
+ TYGA.CLOUD LTD, ITS DIRECTORS, OFFICERS, EMPLOYEES, AGENTS, OR
23
+ AFFILIATES BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL,
24
+ PUNITIVE, OR EXEMPLARY DAMAGES, INCLUDING BUT NOT LIMITED TO DAMAGES FOR
25
+ LOSS OF PROFITS, GOODWILL, USE, DATA, OR OTHER INTANGIBLE LOSSES, ARISING
26
+ OUT OF OR IN CONNECTION WITH YOUR USE OF OR INABILITY TO USE THIS SOFTWARE,
27
+ REGARDLESS OF THE THEORY OF LIABILITY (CONTRACT, TORT, STRICT LIABILITY, OR
28
+ OTHERWISE), EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
29
+
30
+ THE TOTAL AGGREGATE LIABILITY OF TYGA.CLOUD LTD FOR ALL CLAIMS ARISING
31
+ FROM OR RELATED TO THIS SOFTWARE SHALL NOT EXCEED ONE POUND STERLING
32
+ (£1.00).
33
+
34
+ YOU AGREE TO INDEMNIFY, DEFEND, AND HOLD HARMLESS TYGA.CLOUD LTD, ITS
35
+ DIRECTORS, OFFICERS, EMPLOYEES, AND AGENTS FROM AND AGAINST ANY AND ALL
36
+ CLAIMS, LIABILITIES, DAMAGES, LOSSES, COSTS, AND EXPENSES (INCLUDING
37
+ REASONABLE ATTORNEYS' FEES) ARISING OUT OF OR RELATED TO:
38
+ (A) YOUR USE OR MISUSE OF THIS SOFTWARE;
39
+ (B) YOUR VIOLATION OF THIS AGREEMENT;
40
+ (C) YOUR VIOLATION OF ANY APPLICABLE LAW OR REGULATION;
41
+ (D) ANY DATA OR CONTENT YOU TRANSMIT THROUGH THE SOFTWARE.
42
+
43
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
44
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
45
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
46
+
47
+ GOVERNING LAW
48
+
49
+ This Agreement shall be governed by and construed in accordance with the
50
+ laws of England and Wales. Any dispute arising under this Agreement shall
51
+ be subject to the exclusive jurisdiction of the courts of England and Wales.
52
+
53
+ Full terms of service: https://tyga.run/terms
54
+ Contact: legal@tyga.cloud
package/README.md ADDED
@@ -0,0 +1,88 @@
1
+ # tyr
2
+
3
+ SaaS infrastructure for coding agents. Users, billing, scheduling, support, CRM — as easy as git.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install -g tygarun
9
+ ```
10
+
11
+ ## Quick Start
12
+
13
+ ```bash
14
+ # Create a SaaS tenant
15
+ tyr signup my-project --local
16
+
17
+ # Check status
18
+ tyr status
19
+
20
+ # Manage users
21
+ tyr users
22
+ tyr user create "alice@company.com" --role admin
23
+
24
+ # Subscription plans
25
+ tyr plans
26
+ tyr plan create "Pro" --price 29.99 --interval monthly
27
+
28
+ # Support tickets
29
+ tyr ticket create "Dashboard loading slow" -p high
30
+
31
+ # Call ANY SDK endpoint (escape hatch)
32
+ tyr api GET /scheduling/bookings
33
+ tyr api POST /crm/leads --data '{"name":"John"}'
34
+
35
+ # Full reference
36
+ tyr --help
37
+ ```
38
+
39
+ ## Features
40
+
41
+ - **Users** — create, manage, role-based access
42
+ - **Billing** — subscription plans, invoices, revenue metrics
43
+ - **Support** — ticket lifecycle, priority management
44
+ - **Raw API** — `tyr api` escape hatch for all 48 SDK modules (4,600+ endpoints)
45
+ - **MCP Server** — native agent tool integration (14 tools)
46
+
47
+ ## Per-Project Config
48
+
49
+ ```bash
50
+ tyr login --local --key YOUR_KEY # saves to .tyr/config.json (project-local)
51
+ tyr login --key YOUR_KEY # saves to ~/.tyr/config.json (global)
52
+ tyr config # show which config is active
53
+ ```
54
+
55
+ Local config overrides global. Add `.tyr/` to your `.gitignore`.
56
+
57
+ ## Agent Integration
58
+
59
+ ```bash
60
+ tyr init # auto-detects agent, shows config snippet + MCP setup
61
+ ```
62
+
63
+ ## MCP Server
64
+
65
+ Add to `.mcp.json`:
66
+
67
+ ```json
68
+ {
69
+ "mcpServers": {
70
+ "tygarun": {
71
+ "type": "stdio",
72
+ "command": "tyr",
73
+ "args": ["mcp-serve"]
74
+ }
75
+ }
76
+ }
77
+ ```
78
+
79
+ Your agent discovers 14 tyga.run tools automatically.
80
+
81
+ ## Documentation
82
+
83
+ - [tyga.run](https://tyga.run)
84
+ - [SDK Docs](https://sdk.tyga.run/docs)
85
+
86
+ ## License
87
+
88
+ Proprietary — Tyga.Cloud Ltd. See [LICENSE](./LICENSE).
package/bin/cli.js ADDED
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env node
2
+ try {
3
+ require('../dist/main');
4
+ } catch (e) {
5
+ if (e.code === 'MODULE_NOT_FOUND' && e.message.includes('dist/main')) {
6
+ // Dev mode - source not built yet, fall back to src/
7
+ require('../src/main');
8
+ } else {
9
+ throw e;
10
+ }
11
+ }