@nanobpm/nano-ide-trigger-mqtt 1.0.0 → 1.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/nano-ide.ext.json +53 -0
- package/package.json +1 -1
package/nano-ide.ext.json
CHANGED
|
@@ -28,5 +28,58 @@
|
|
|
28
28
|
}
|
|
29
29
|
]
|
|
30
30
|
}
|
|
31
|
+
],
|
|
32
|
+
"tours": [
|
|
33
|
+
{
|
|
34
|
+
"id": "mqtt-message-starts-a-process",
|
|
35
|
+
"title": "Start a process from a broker message",
|
|
36
|
+
"blurb": "Wire an MQTT topic to a process start — the “when this happens…” half of an automation.",
|
|
37
|
+
"profiles": [
|
|
38
|
+
"studio"
|
|
39
|
+
],
|
|
40
|
+
"preconditions": [
|
|
41
|
+
"hasProject"
|
|
42
|
+
],
|
|
43
|
+
"steps": [
|
|
44
|
+
{
|
|
45
|
+
"id": "what-this-adds",
|
|
46
|
+
"kind": "note",
|
|
47
|
+
"title": "An MQTT message can start a process",
|
|
48
|
+
"body": "Installing this pack adds a trigger source kind, `mqtt`, that any App can declare in its `nano.app.json`. You name a broker and a topic filter; the runtime owns the durable inbox, dispatch, retry and lifecycle, and auto-launches this pack's driver (ADR 0025). Each message can start a process or correlate into a running one."
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"id": "run-the-app",
|
|
52
|
+
"title": "Run the app so the driver starts",
|
|
53
|
+
"body": "The trigger driver is a supervised out-of-process child of your running app — nothing subscribes until the app is running.",
|
|
54
|
+
"selector": "[data-tour=\"run\"]",
|
|
55
|
+
"side": "bottom",
|
|
56
|
+
"align": "start",
|
|
57
|
+
"precondition": "hasJsRuntime",
|
|
58
|
+
"repair": {
|
|
59
|
+
"id": "need-a-runtime",
|
|
60
|
+
"kind": "note",
|
|
61
|
+
"title": "Install a JavaScript runtime first",
|
|
62
|
+
"body": "Running an app needs Node ≥ 22.6 (the npm launcher ships one) or Deno. Until then you can still author the trigger — only starting it is unavailable."
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"id": "publish-a-test-message",
|
|
67
|
+
"kind": "handoff",
|
|
68
|
+
"title": "Publish a test message",
|
|
69
|
+
"body": "Any MQTT client will do — this step is outside the console because the broker is. Adjust the topic to match the filter you declared.",
|
|
70
|
+
"copy": "mosquitto_pub -h localhost -t home/porch/motion -m '{\"value\":1}'",
|
|
71
|
+
"copyLabel": "Copy command"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"id": "see-the-instance",
|
|
75
|
+
"title": "See what the message started",
|
|
76
|
+
"body": "The message that arrived is now a process instance, and its payload is the instance's variables — an event your process can reason about.",
|
|
77
|
+
"route": "/explorer",
|
|
78
|
+
"selector": "[data-tour=\"nav-explorer\"]",
|
|
79
|
+
"side": "right",
|
|
80
|
+
"align": "start"
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
}
|
|
31
84
|
]
|
|
32
85
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nanobpm/nano-ide-trigger-mqtt",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "MQTT trigger source pack for the Nano/Urban RAD console: subscribe to broker topics and drive process instances from messages (ADR 0025).",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|