@nocville/node 0.2.2 → 0.2.3
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/dist/cjs/index.js +2 -0
- package/dist/index.d.ts +12 -2
- package/dist/index.js +2 -0
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -76,6 +76,8 @@ class NocvilleClient {
|
|
|
76
76
|
payload.name = update.name;
|
|
77
77
|
if (update.archetype !== undefined)
|
|
78
78
|
payload.archetype = update.archetype;
|
|
79
|
+
if (update.kind !== undefined)
|
|
80
|
+
payload.kind = update.kind;
|
|
79
81
|
if (update.subStatus !== undefined)
|
|
80
82
|
payload.subStatus = update.subStatus;
|
|
81
83
|
if (update.screenData !== undefined)
|
package/dist/index.d.ts
CHANGED
|
@@ -55,7 +55,9 @@ export interface AlertConfig {
|
|
|
55
55
|
heartbeatInterval?: number;
|
|
56
56
|
}
|
|
57
57
|
/** Companion pixel-screen types the server knows how to render. */
|
|
58
|
-
export type CompanionScreenType = 'log-terminal' | 'ticker-tape' | 'crt-monitor' | 'dashboard-wall' | 'status-light' | 'gauge-panel' | 'web-view' | 'desk-sign' | 'commit-board' | 'welcome-sign'
|
|
58
|
+
export type CompanionScreenType = 'log-terminal' | 'ticker-tape' | 'crt-monitor' | 'dashboard-wall' | 'status-light' | 'gauge-panel' | 'web-view' | 'desk-sign' | 'commit-board' | 'welcome-sign'
|
|
59
|
+
/** Your own pixel art (pixel-image screenData, transparency + animation frames). */
|
|
60
|
+
| 'pixel-device';
|
|
59
61
|
export type BehaviorActivity = 'busy' | 'idle' | 'waiting' | 'critical';
|
|
60
62
|
export type BehaviorIdle = 'seek-lounge' | 'seek-desk' | 'wander' | 'stay';
|
|
61
63
|
export type BehaviorPose = 'sit' | 'sleep' | 'stand';
|
|
@@ -83,7 +85,10 @@ export interface BehaviorHints {
|
|
|
83
85
|
activity?: BehaviorActivity;
|
|
84
86
|
/** Where to go when idle */
|
|
85
87
|
idle?: BehaviorIdle;
|
|
86
|
-
/**
|
|
88
|
+
/**
|
|
89
|
+
* Where to go when busy: 'seek-desk' | 'wander' | 'stay' | 'seek-companion' (work at this
|
|
90
|
+
* NPC's own companion object) | 'seek-object:<category|catalogId>'
|
|
91
|
+
*/
|
|
87
92
|
busy?: string;
|
|
88
93
|
/** Pose to strike when idle */
|
|
89
94
|
idlePose?: BehaviorPose;
|
|
@@ -149,6 +154,11 @@ export interface StatusUpdate {
|
|
|
149
154
|
metrics?: Record<string, number | string>;
|
|
150
155
|
/** NPC archetype identifier */
|
|
151
156
|
archetype?: string;
|
|
157
|
+
/**
|
|
158
|
+
* NPC type slug (lowercase letters, digits and dashes, e.g. `backup-bot`). Groups NPCs so
|
|
159
|
+
* a team can send every NPC of a type to the same room. Defaults to the archetype.
|
|
160
|
+
*/
|
|
161
|
+
kind?: string;
|
|
152
162
|
/** Sub-status for more granular state */
|
|
153
163
|
subStatus?: string;
|
|
154
164
|
/** Screen data for NPC display */
|
package/dist/index.js
CHANGED
|
@@ -73,6 +73,8 @@ export class NocvilleClient {
|
|
|
73
73
|
payload.name = update.name;
|
|
74
74
|
if (update.archetype !== undefined)
|
|
75
75
|
payload.archetype = update.archetype;
|
|
76
|
+
if (update.kind !== undefined)
|
|
77
|
+
payload.kind = update.kind;
|
|
76
78
|
if (update.subStatus !== undefined)
|
|
77
79
|
payload.subStatus = update.subStatus;
|
|
78
80
|
if (update.screenData !== undefined)
|