viyv-daemon 0.1.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.
package/LICENSE ADDED
@@ -0,0 +1,51 @@
1
+ Viyv Agent - Proprietary Software License
2
+
3
+ Copyright (c) 2024-2025 Hiroki Takezawa, Brainfiber Inc.
4
+ All rights reserved.
5
+
6
+ This software and associated documentation files (the "Software") are the
7
+ proprietary and confidential property of Hiroki Takezawa and Brainfiber Inc.
8
+
9
+ TERMS AND CONDITIONS
10
+
11
+ 1. GRANT OF LICENSE
12
+ This Software is provided to you under a limited, non-exclusive,
13
+ non-transferable license for evaluation and internal use only.
14
+
15
+ 2. RESTRICTIONS
16
+ You may NOT:
17
+ - Use this Software for commercial purposes without prior written
18
+ permission from Hiroki Takezawa
19
+ - Distribute, sublicense, sell, or transfer this Software to any
20
+ third party
21
+ - Modify, adapt, or create derivative works based on this Software
22
+ for commercial distribution
23
+ - Remove or alter any proprietary notices, labels, or marks
24
+
25
+ 3. COMMERCIAL USE
26
+ Commercial use of this Software requires a separate commercial license
27
+ agreement. For licensing inquiries, please contact Hiroki Takezawa at
28
+ Brainfiber Inc.
29
+
30
+ 4. INTELLECTUAL PROPERTY
31
+ All intellectual property rights in and to this Software, including but
32
+ not limited to patents, copyrights, trademarks, and trade secrets, are
33
+ and shall remain the exclusive property of Hiroki Takezawa and
34
+ Brainfiber Inc.
35
+
36
+ 5. NO WARRANTY
37
+ THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EXPRESS
38
+ OR IMPLIED. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
39
+ FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY ARISING FROM THE USE OF THIS
40
+ SOFTWARE.
41
+
42
+ 6. TERMINATION
43
+ This license is effective until terminated. Your rights under this
44
+ license will terminate automatically without notice if you fail to
45
+ comply with any of its terms.
46
+
47
+ For inquiries regarding commercial licensing or permissions, please contact:
48
+ Hiroki Takezawa
49
+ Brainfiber Inc.
50
+ hiroki.takezawa@brainfiber.net
51
+ https://www.brainfiber.net/
package/README.md ADDED
@@ -0,0 +1,140 @@
1
+ # viyv-daemon
2
+
3
+ Multi-agent orchestration daemon for Viyv Agent.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install -g viyv-daemon
9
+ ```
10
+
11
+ ## Quick Start
12
+
13
+ ```bash
14
+ # Create a daemon configuration
15
+ viyv-daemon create
16
+
17
+ # Start the daemon (prompts for Hub/Enroll URLs and enrollment if needed)
18
+ viyv-daemon
19
+ ```
20
+
21
+ ## Commands
22
+
23
+ | Command | Description |
24
+ |---------|-------------|
25
+ | `viyv-daemon` | Start daemon (default) |
26
+ | `viyv-daemon create` | Create configuration |
27
+ | `viyv-daemon configs` | List configurations |
28
+ | `viyv-daemon list` | List running daemons |
29
+ | `viyv-daemon status` | Show status |
30
+ | `viyv-daemon enroll` | Manual enrollment |
31
+ | `viyv-daemon config` | Show/update configuration |
32
+
33
+ ## Configuration
34
+
35
+ On first startup, you'll be prompted to configure Hub URL and Enroll URL.
36
+ You can also pre-configure these via environment variables or CLI.
37
+
38
+ ### Environment Variables
39
+
40
+ ```bash
41
+ export VIYV_HUB_URL=wss://hub.example.com
42
+ export VIYV_ENROLL_URL=https://app.example.com
43
+ ```
44
+
45
+ ### CLI Configuration
46
+
47
+ ```bash
48
+ # Set Hub URL
49
+ viyv-daemon config --hub-url wss://hub.example.com
50
+
51
+ # Set Enroll URL
52
+ viyv-daemon config --enroll-url https://app.example.com
53
+
54
+ # View current configuration
55
+ viyv-daemon config
56
+ ```
57
+
58
+ ## Start Options
59
+
60
+ ```bash
61
+ # Start with auto-enrollment (default)
62
+ viyv-daemon
63
+ # or explicitly
64
+ viyv-daemon start
65
+
66
+ # Start without auto-enrollment
67
+ viyv-daemon --no-auto-enroll
68
+
69
+ # Start specific daemon by name
70
+ viyv-daemon -n my-daemon
71
+
72
+ # Start in foreground
73
+ viyv-daemon -f
74
+
75
+ # Update commands on startup
76
+ viyv-daemon -u
77
+
78
+ # Combine options
79
+ viyv-daemon -n my-daemon -f
80
+ ```
81
+
82
+ ## Manual Enrollment
83
+
84
+ If you prefer to enroll manually:
85
+
86
+ ```bash
87
+ # Enroll using configured URL
88
+ viyv-daemon enroll
89
+
90
+ # Enroll using specific URL
91
+ viyv-daemon enroll -u https://app.example.com
92
+
93
+ # Enroll without opening browser
94
+ viyv-daemon enroll --no-browser
95
+ ```
96
+
97
+ ## Daemon Management
98
+
99
+ ### Create a daemon configuration
100
+
101
+ ```bash
102
+ # Interactive mode
103
+ viyv-daemon create
104
+
105
+ # Non-interactive mode
106
+ viyv-daemon create my-daemon --type development --no-interactive
107
+ ```
108
+
109
+ ### List and manage daemons
110
+
111
+ ```bash
112
+ # List all configurations
113
+ viyv-daemon configs
114
+
115
+ # List running daemons
116
+ viyv-daemon list
117
+
118
+ # Delete a configuration
119
+ viyv-daemon delete my-daemon
120
+ ```
121
+
122
+ ### Check status
123
+
124
+ ```bash
125
+ # Check running daemon status
126
+ viyv-daemon status
127
+
128
+ # Check local configuration only
129
+ viyv-daemon status --local
130
+ ```
131
+
132
+ ## Requirements
133
+
134
+ - Node.js 20+
135
+ - Viyv Hub server connection
136
+ - Viyv workspace account
137
+
138
+ ## License
139
+
140
+ SEE LICENSE IN LICENSE