-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdev.ps1
More file actions
101 lines (45 loc) · 1.72 KB
/
Copy pathdev.ps1
File metadata and controls
101 lines (45 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#!/usr/bin/env pwsh
# QuickerRpc + QuickerAgent — single dev entry point.
#
# pwsh ./dev.ps1 # qkrpc serve + agent-gui @ :3000 (default)
# pwsh ./dev.ps1 -Browser # same + open browser
# pwsh ./dev.ps1 -Electron # desktop Chromium shell (default for quicker-agent:dev)
# pwsh ./dev.ps1 -Tauri # legacy WebView2 shell (reuses :3000 when healthy)
# pwsh ./dev.ps1 -NoWatch # disable auto hot-update on source changes
# pwsh ./dev.ps1 -Full # eager-start voice runtime
# pwsh ./dev.ps1 -Services qkrpc # qkrpc serve only
#
# Auto hot-update: watches Plugin/CLI/publish sources → build.ps1 -t → restart qkrpc serve.
# Prerequisite: Quicker running with QuickerRpc plugin loaded.
param(
[string]$Services = 'qkrpc,agent',
[switch]$NoWatch,
[switch]$Full,
[switch]$SkipKill,
[switch]$Tauri,
[switch]$Electron,
[switch]$Browser,
[switch]$NoReuse
)
$ErrorActionPreference = 'Stop'
if ($Electron) {
. (Join-Path $PSScriptRoot 'scripts/dev-launcher.ps1')
Invoke-DevElectronLauncher -RepoRoot $PSScriptRoot -SkipKill:$SkipKill -NoReuse:$NoReuse
exit $LASTEXITCODE
}
if ($Tauri) {
. (Join-Path $PSScriptRoot 'scripts/dev-launcher.ps1')
Invoke-DevTauriLauncher -RepoRoot $PSScriptRoot -SkipKill:$SkipKill -NoReuse:$NoReuse
exit $LASTEXITCODE
}
$nodeArgs = @(
(Join-Path $PSScriptRoot 'scripts/dev-supervisor.mjs')
'--services', $Services
)
if ($NoWatch) { $nodeArgs += '--no-watch' }
else { $nodeArgs += '--watch' }
if ($Full) { $nodeArgs += '--full' }
if ($SkipKill) { $nodeArgs += '--skip-kill' }
if ($Browser) { $nodeArgs += '--open-browser' }
& node @nodeArgs
exit $LASTEXITCODE