@miakapp/cli 4.0.0-alpha.4 → 4.0.0-alpha.5
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/assets/agent-guide.md +5 -5
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/assets/agent-guide.md
CHANGED
|
@@ -145,8 +145,8 @@ Four declarations:
|
|
|
145
145
|
|
|
146
146
|
```ts
|
|
147
147
|
{
|
|
148
|
-
state: { 'zone.
|
|
149
|
-
stateAccess: [{ userId, patterns: ['zone.
|
|
148
|
+
state: { 'zone.living_room.light.on': false }, // paths and initial values
|
|
149
|
+
stateAccess: [{ userId, patterns: ['zone.living_room.*'] }],
|
|
150
150
|
events: [{ topic, directions: EventDirection.publishToUsers }],
|
|
151
151
|
eventAccess: [{ userId, publish: [], subscribe: [topic] }],
|
|
152
152
|
functions: { async 'lighting.set'(call) { /* authorize, act, return */ } },
|
|
@@ -201,8 +201,8 @@ Handlers are functions, not identifiers to wire up by hand:
|
|
|
201
201
|
|
|
202
202
|
```ts
|
|
203
203
|
ui.toggle({
|
|
204
|
-
id: '
|
|
205
|
-
label: '
|
|
204
|
+
id: 'living-room-light',
|
|
205
|
+
label: 'Living-room lamp',
|
|
206
206
|
value: asBoolean(home.state.get(LIGHT_ON)),
|
|
207
207
|
disabled: home.staging || !healthy,
|
|
208
208
|
pending,
|
|
@@ -238,7 +238,7 @@ try {
|
|
|
238
238
|
} catch (error) {
|
|
239
239
|
// Deliberately not retried. The call may already have reached the lamp,
|
|
240
240
|
// and the next state snapshot settles the question.
|
|
241
|
-
failure = error instanceof Error ? error.message : '
|
|
241
|
+
failure = error instanceof Error ? error.message : 'The command failed';
|
|
242
242
|
}
|
|
243
243
|
```
|
|
244
244
|
|
package/dist/version.d.ts
CHANGED
|
@@ -11,5 +11,5 @@
|
|
|
11
11
|
* would resolve a different release than the guide shipped beside it.
|
|
12
12
|
*/
|
|
13
13
|
export declare const PACKAGE_NAME = "@miakapp/cli";
|
|
14
|
-
export declare const CLI_VERSION = "4.0.0-alpha.
|
|
14
|
+
export declare const CLI_VERSION = "4.0.0-alpha.5";
|
|
15
15
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED