@shardworks/guild-starter-kit 0.1.52 → 0.1.53

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.
@@ -278,6 +278,9 @@ Tools that animas wield during work. Each tool ships with instructions delivered
278
278
  - **clock-list** — show pending events
279
279
  - **clock-tick** — process the next pending event
280
280
  - **clock-run** — process all pending events
281
+ - **clock-start** — start the clockworks daemon
282
+ - **clock-stop** — stop the clockworks daemon
283
+ - **clock-status** — check if the clockworks daemon is running (PID, uptime, log file)
281
284
 
282
285
  ### Utility Tools
283
286
  - **signal** — signal a custom guild event for the Clockworks
@@ -410,7 +413,9 @@ The event name must be declared in `guild.json clockworks.events`. Framework nam
410
413
 
411
414
  ### Processing Events
412
415
 
413
- Events are not processed automatically. The operator controls when the Clockworks runs:
416
+ Events can be processed manually or automatically via the daemon.
417
+
418
+ **Manual processing:**
414
419
 
415
420
  | Command | What it does |
416
421
  |---------|-------------|
@@ -418,6 +423,16 @@ Events are not processed automatically. The operator controls when the Clockwork
418
423
  | `nsg clock tick [id]` | Process the next pending event, or a specific one by id |
419
424
  | `nsg clock run` | Process all pending events until the queue is empty |
420
425
 
426
+ **Daemon (automatic processing):**
427
+
428
+ | Command | What it does |
429
+ |---------|-------------|
430
+ | `nsg clock start [--interval <ms>]` | Start the daemon (polls every 2s by default) |
431
+ | `nsg clock stop` | Stop the daemon |
432
+ | `nsg clock status` | Check if the daemon is running |
433
+
434
+ The daemon runs as a background process, polling the event queue and processing events as they arrive. Use the `clock-status` tool to verify the daemon is active before dispatching work that depends on automatic event processing.
435
+
421
436
  ### Error Handling
422
437
 
423
438
  When a standing order fails, the system signals a `standing-order.failed` event. Guilds can respond to this with their own standing orders. A loop guard prevents cascading failures — `standing-order.failed` events triggered by other `standing-order.failed` events are skipped automatically.
@@ -587,3 +602,6 @@ The primary interface is the `nsg` command, organized by noun groups:
587
602
  | `nsg clock list` | Show pending events |
588
603
  | `nsg clock tick [id]` | Process next pending event (or specific id) |
589
604
  | `nsg clock run` | Process all pending events |
605
+ | `nsg clock start [--interval <ms>]` | Start the daemon |
606
+ | `nsg clock stop` | Stop the daemon |
607
+ | `nsg clock status` | Show daemon status |
package/nexus-bundle.json CHANGED
@@ -21,6 +21,9 @@
21
21
  { "package": "@shardworks/nexus-stdlib@0.x", "name": "clock-list" },
22
22
  { "package": "@shardworks/nexus-stdlib@0.x", "name": "clock-tick" },
23
23
  { "package": "@shardworks/nexus-stdlib@0.x", "name": "clock-run" },
24
+ { "package": "@shardworks/nexus-stdlib@0.x", "name": "clock-status" },
25
+ { "package": "@shardworks/nexus-stdlib@0.x", "name": "clock-start" },
26
+ { "package": "@shardworks/nexus-stdlib@0.x", "name": "clock-stop" },
24
27
  { "package": "@shardworks/nexus-stdlib@0.x", "name": "nexus-version" },
25
28
  { "package": "@shardworks/nexus-stdlib@0.x", "name": "signal" },
26
29
  { "package": "@shardworks/nexus-stdlib@0.x", "name": "work-create" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shardworks/guild-starter-kit",
3
- "version": "0.1.52",
3
+ "version": "0.1.53",
4
4
  "description": "Default bundle for new Nexus guilds — tools, training, and migrations",
5
5
  "repository": {
6
6
  "type": "git",