You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After a global install, use the `simdeck` command directly. From a local checkout, you can also run `./build/simdeck`.
45
56
57
+
Install the agent skill with [skills.sh](https://skills.sh/):
58
+
59
+
```sh
60
+
npx skills add NativeScript/SimDeck --skill simdeck -a codex -g
61
+
```
62
+
63
+
The npm postinstall message also prints this command after a global install.
64
+
It also recommends `simdeck service on` for always-on local access from agents
65
+
and editor integrations.
66
+
46
67
## Documentation
47
68
48
69
Full documentation lives at [simdeck.nativescript.org](https://simdeck.nativescript.org/), with guides, the CLI reference, the REST API, the WebTransport video pipeline, and the inspector protocols. The source for the site lives in [`docs/`](docs/) — preview it locally with `npm run docs:dev`.
@@ -79,6 +100,18 @@ simdeck daemon status
79
100
simdeck daemon stop
80
101
```
81
102
103
+
`simdeck daemon` manages the normal per-project warm process. For an always-on
104
+
daemon that is available after login, use the macOS user service commands:
105
+
106
+
```sh
107
+
simdeck service on
108
+
simdeck service off
109
+
```
110
+
111
+
This uses a LaunchAgent, keeps the server bound to localhost by default, and is
112
+
best for agents or editor integrations that should be able to open SimDeck
113
+
without first starting a project daemon.
114
+
82
115
Use software H.264 when macOS screen recording starves the hardware encoder:
Copy file name to clipboardExpand all lines: docs/api/health.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,7 @@ Returns a snapshot of every server-side counter and the rolling buffer of client
91
91
92
92
`client_streams` is a rolling buffer of the most recent reports a client posted to `POST /api/client-stream-stats`. The server keeps the last 48 entries per `(clientId, kind)` pair.
93
93
94
-
The browser client uses these to render its in-app diagnostics overlay and to size its decoder workers. Every field is optional except `clientId` and `kind`; see [`ClientStreamStats`](https://github.com/DjDeveloperr/SimDeck/blob/main/server/src/metrics/counters.rs) for the full schema.
94
+
The browser client uses these to render its in-app diagnostics overlay and to size its decoder workers. Every field is optional except `clientId` and `kind`; see [`ClientStreamStats`](https://github.com/NativeScript/SimDeck/blob/main/server/src/metrics/counters.rs) for the full schema.
Copy file name to clipboardExpand all lines: docs/guide/daemon.md
+32Lines changed: 32 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,9 @@ SimDeck runs one warm native host per project. The daemon owns the HTTP API, the
4
4
5
5
Normal CLI commands start the daemon automatically when they need it. Use `simdeck daemon` only when you want to manage it explicitly.
6
6
7
+
`simdeck daemon` is project-scoped. `simdeck service` is the optional macOS
8
+
LaunchAgent wrapper for users who want an always-on daemon after login.
9
+
7
10
## Start
8
11
9
12
```sh
@@ -69,6 +72,35 @@ simdeck daemon stop
69
72
70
73
This terminates the daemon for the current project and removes its metadata file from the system temp directory. The next CLI command that needs the daemon starts a fresh one.
71
74
75
+
## Always-On Service
76
+
77
+
For agents and editor integrations that should be able to reach SimDeck at any
78
+
time after login, use `simdeck service` to install the macOS user service:
79
+
80
+
```sh
81
+
simdeck service on
82
+
```
83
+
84
+
This writes `~/Library/LaunchAgents/dev.nativescript.simdeck.plist`, starts the
85
+
server with `launchctl`, and keeps it alive. It binds to `127.0.0.1:4310` by
86
+
default and serves the bundled browser client.
87
+
88
+
Restart it after changing options:
89
+
90
+
```sh
91
+
simdeck service restart --port 4310 --video-codec h264-software
92
+
```
93
+
94
+
Disable it when you do not want a persistent daemon:
95
+
96
+
```sh
97
+
simdeck service off
98
+
```
99
+
100
+
Prefer the project daemon for project-scoped metadata and automatic lifecycle.
101
+
Use the service when the priority is easy access from Codex, VS Code, or a
102
+
browser at any time.
103
+
72
104
## CoreSimulator Service Layer
73
105
74
106
The project daemon is different from Apple's CoreSimulator service. If `simctl` reports stale service state or the live display never produces a first frame, restart Apple's service layer:
0 commit comments