@softov/ahpc 0.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/LICENSE +21 -0
- package/README.md +296 -0
- package/dist/src/ahp/channels.d.ts +146 -0
- package/dist/src/ahp/channels.js +423 -0
- package/dist/src/ahp/connection.d.ts +656 -0
- package/dist/src/ahp/connection.js +1 -0
- package/dist/src/ahp/fake.d.ts +69 -0
- package/dist/src/ahp/fake.js +1996 -0
- package/dist/src/ahp/live.d.ts +160 -0
- package/dist/src/ahp/live.js +2641 -0
- package/dist/src/ahp/operate.d.ts +36 -0
- package/dist/src/ahp/operate.js +56 -0
- package/dist/src/ahp/publish.d.ts +39 -0
- package/dist/src/ahp/publish.js +370 -0
- package/dist/src/ahp/status.d.ts +23 -0
- package/dist/src/ahp/status.js +23 -0
- package/dist/src/ahp/types.d.ts +745 -0
- package/dist/src/ahp/types.js +27 -0
- package/dist/src/app.d.ts +54 -0
- package/dist/src/app.js +369 -0
- package/dist/src/blocks.d.ts +88 -0
- package/dist/src/blocks.js +102 -0
- package/dist/src/cli/main.d.ts +13 -0
- package/dist/src/cli/main.js +1537 -0
- package/dist/src/cli/render.d.ts +43 -0
- package/dist/src/cli/render.js +91 -0
- package/dist/src/config.d.ts +63 -0
- package/dist/src/config.js +45 -0
- package/dist/src/connect.d.ts +53 -0
- package/dist/src/connect.js +69 -0
- package/dist/src/control.d.ts +189 -0
- package/dist/src/control.js +2241 -0
- package/dist/src/diff.d.ts +44 -0
- package/dist/src/diff.js +111 -0
- package/dist/src/flags.d.ts +28 -0
- package/dist/src/flags.js +76 -0
- package/dist/src/main.d.ts +10 -0
- package/dist/src/main.js +54 -0
- package/dist/src/schedule.d.ts +46 -0
- package/dist/src/schedule.js +140 -0
- package/dist/src/screens.d.ts +79 -0
- package/dist/src/screens.js +1322 -0
- package/dist/src/state.d.ts +355 -0
- package/dist/src/state.js +531 -0
- package/dist/src/terminal.d.ts +44 -0
- package/dist/src/terminal.js +101 -0
- package/dist/src/tui.d.ts +92 -0
- package/dist/src/tui.js +372 -0
- package/dist/src/view/automations.d.ts +31 -0
- package/dist/src/view/automations.js +76 -0
- package/dist/src/view/bood/art.d.ts +90 -0
- package/dist/src/view/bood/art.js +152 -0
- package/dist/src/view/bood/beetle.d.ts +7 -0
- package/dist/src/view/bood/beetle.js +123 -0
- package/dist/src/view/bood/bunny.d.ts +8 -0
- package/dist/src/view/bood/bunny.js +228 -0
- package/dist/src/view/bood/cat.d.ts +9 -0
- package/dist/src/view/bood/cat.js +358 -0
- package/dist/src/view/bood/crab.d.ts +7 -0
- package/dist/src/view/bood/crab.js +121 -0
- package/dist/src/view/bood/index.d.ts +29 -0
- package/dist/src/view/bood/index.js +25 -0
- package/dist/src/view/bood/motion.d.ts +178 -0
- package/dist/src/view/bood/motion.js +298 -0
- package/dist/src/view/bood/owl.d.ts +9 -0
- package/dist/src/view/bood/owl.js +285 -0
- package/dist/src/view/bood/registry.d.ts +36 -0
- package/dist/src/view/bood/registry.js +218 -0
- package/dist/src/view/bood/render.d.ts +31 -0
- package/dist/src/view/bood/render.js +196 -0
- package/dist/src/view/bood/sprite.d.ts +18 -0
- package/dist/src/view/bood/sprite.js +130 -0
- package/dist/src/view/bood/sprout.d.ts +8 -0
- package/dist/src/view/bood/sprout.js +121 -0
- package/dist/src/view/bood/types.d.ts +158 -0
- package/dist/src/view/bood/types.js +57 -0
- package/dist/src/view/bubble.d.ts +75 -0
- package/dist/src/view/bubble.js +86 -0
- package/dist/src/view/changes.d.ts +35 -0
- package/dist/src/view/changes.js +22 -0
- package/dist/src/view/composer.d.ts +64 -0
- package/dist/src/view/composer.js +192 -0
- package/dist/src/view/controls.d.ts +44 -0
- package/dist/src/view/controls.js +49 -0
- package/dist/src/view/creature.d.ts +69 -0
- package/dist/src/view/creature.js +83 -0
- package/dist/src/view/customizations.d.ts +28 -0
- package/dist/src/view/customizations.js +53 -0
- package/dist/src/view/details.d.ts +65 -0
- package/dist/src/view/details.js +65 -0
- package/dist/src/view/filediff.d.ts +29 -0
- package/dist/src/view/filediff.js +24 -0
- package/dist/src/view/files.d.ts +31 -0
- package/dist/src/view/files.js +39 -0
- package/dist/src/view/hitl.d.ts +43 -0
- package/dist/src/view/hitl.js +171 -0
- package/dist/src/view/icons.d.ts +13 -0
- package/dist/src/view/icons.js +71 -0
- package/dist/src/view/picker.d.ts +42 -0
- package/dist/src/view/picker.js +71 -0
- package/dist/src/view/sessionhead.d.ts +41 -0
- package/dist/src/view/sessionhead.js +60 -0
- package/dist/src/view/sessions.d.ts +34 -0
- package/dist/src/view/sessions.js +61 -0
- package/dist/src/view/terminal.d.ts +30 -0
- package/dist/src/view/terminal.js +32 -0
- package/dist/src/view/toolcall.d.ts +27 -0
- package/dist/src/view/toolcall.js +48 -0
- package/dist/src/view/transcript.d.ts +50 -0
- package/dist/src/view/transcript.js +60 -0
- package/package.json +72 -0
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
import { alternate, art, blink } from './art.js';
|
|
2
|
+
import { defineCreature } from './types.js';
|
|
3
|
+
/**
|
|
4
|
+
* A cat, in three sizes.
|
|
5
|
+
*
|
|
6
|
+
* The tail is what carries the mood at full size after the face does: up and
|
|
7
|
+
* curled when things are well, flat when they are not, swishing while there is
|
|
8
|
+
* work going on. Which is a second carrier of the same meaning, and that is the
|
|
9
|
+
* point - a 16-colour session and a piped log both keep the tail.
|
|
10
|
+
*/
|
|
11
|
+
export const cat = defineCreature({
|
|
12
|
+
name: 'cat',
|
|
13
|
+
label: 'Cat',
|
|
14
|
+
about: 'Sits on whatever you were reading',
|
|
15
|
+
draw: {
|
|
16
|
+
happy: blink(art `
|
|
17
|
+
/\_/\
|
|
18
|
+
( ^.^ )
|
|
19
|
+
> ^ <
|
|
20
|
+
(_____)~
|
|
21
|
+
`, art `
|
|
22
|
+
/\_/\
|
|
23
|
+
( -.- )
|
|
24
|
+
> ^ <
|
|
25
|
+
(_____)~
|
|
26
|
+
`),
|
|
27
|
+
sad: art `
|
|
28
|
+
/\_/\
|
|
29
|
+
( T.T )
|
|
30
|
+
> _ <
|
|
31
|
+
(_____)_
|
|
32
|
+
`,
|
|
33
|
+
// The bubble arrives rather than sitting there, which is the difference
|
|
34
|
+
// between a cat that is thinking and a cat with a mole.
|
|
35
|
+
thinking: alternate(art `
|
|
36
|
+
/\_/\ o
|
|
37
|
+
( -.o )
|
|
38
|
+
> - <
|
|
39
|
+
(_____)~
|
|
40
|
+
`, art `
|
|
41
|
+
/\_/\ .
|
|
42
|
+
( -.o )
|
|
43
|
+
> - <
|
|
44
|
+
(_____)~
|
|
45
|
+
`),
|
|
46
|
+
executing: [art `
|
|
47
|
+
/\_/\
|
|
48
|
+
( o.o )
|
|
49
|
+
> - <
|
|
50
|
+
(_____)~
|
|
51
|
+
`, art `
|
|
52
|
+
/\_/\
|
|
53
|
+
( o.- )
|
|
54
|
+
> - <
|
|
55
|
+
(_____)~
|
|
56
|
+
`, art `
|
|
57
|
+
/\_/\
|
|
58
|
+
( -.o )
|
|
59
|
+
> - <
|
|
60
|
+
(_____)/
|
|
61
|
+
`],
|
|
62
|
+
error: art `
|
|
63
|
+
/\_/\
|
|
64
|
+
( >.< )
|
|
65
|
+
>WWW<
|
|
66
|
+
(_____)/
|
|
67
|
+
`,
|
|
68
|
+
},
|
|
69
|
+
block: {
|
|
70
|
+
happy: blink(art `
|
|
71
|
+
/\_/\
|
|
72
|
+
(^.^)
|
|
73
|
+
(___)
|
|
74
|
+
`, art `
|
|
75
|
+
/\_/\
|
|
76
|
+
(-.-)
|
|
77
|
+
(___)
|
|
78
|
+
`),
|
|
79
|
+
sad: art `
|
|
80
|
+
/\_/\
|
|
81
|
+
(T.T)
|
|
82
|
+
(___)
|
|
83
|
+
`,
|
|
84
|
+
thinking: art `
|
|
85
|
+
/\_/\
|
|
86
|
+
(-.o)
|
|
87
|
+
(___)
|
|
88
|
+
`,
|
|
89
|
+
executing: [art `
|
|
90
|
+
/\_/\
|
|
91
|
+
(o.o)
|
|
92
|
+
(___)
|
|
93
|
+
`, art `
|
|
94
|
+
/\_/\
|
|
95
|
+
(o.-)
|
|
96
|
+
(___)
|
|
97
|
+
`, art `
|
|
98
|
+
/\_/\
|
|
99
|
+
(-.o)
|
|
100
|
+
(___)
|
|
101
|
+
`],
|
|
102
|
+
error: art `
|
|
103
|
+
/\_/\
|
|
104
|
+
(>.<)
|
|
105
|
+
(/W\)
|
|
106
|
+
`,
|
|
107
|
+
},
|
|
108
|
+
inline: {
|
|
109
|
+
happy: blink(art `(=^.^=)`, art `(=-.-=)`),
|
|
110
|
+
sad: art `(_T.T_)`,
|
|
111
|
+
thinking: art `(=-.o=)`,
|
|
112
|
+
executing: [art `(=o.o=)`, art `(=o.-=)`, art `(=-.o=)`],
|
|
113
|
+
error: art `(/>.<\)`,
|
|
114
|
+
},
|
|
115
|
+
/**
|
|
116
|
+
* Moving, and it is the only one whose silhouette changes size.
|
|
117
|
+
*
|
|
118
|
+
* A cat seen from the side really is twice as long as a cat seen from the
|
|
119
|
+
* front, so the walk is nineteen cells where the stand is eight, with the
|
|
120
|
+
* head at whichever end it is going. That only works because a figure is
|
|
121
|
+
* placed by the middle of its face slot rather than by its left edge: the
|
|
122
|
+
* body swings round a head that stays put, which is what turning round looks
|
|
123
|
+
* like. Anchored on the corner it would jump ten cells every time it turned.
|
|
124
|
+
*
|
|
125
|
+
* The ears in the working drawing are `/\_/\` here and an ellipsis in the
|
|
126
|
+
* reference sheet. U+2026 is East Asian Ambiguous, so that cat is two cells
|
|
127
|
+
* wider under a CJK font and the paws stop lining up under the head.
|
|
128
|
+
*/
|
|
129
|
+
motion: {
|
|
130
|
+
gait: 'walk',
|
|
131
|
+
flies: false,
|
|
132
|
+
sits: true,
|
|
133
|
+
bounce: 0,
|
|
134
|
+
fallSpeed: 1,
|
|
135
|
+
hop: 0,
|
|
136
|
+
blink: '-.-',
|
|
137
|
+
faces: { happy: '^.^', sad: 'T.T', thinking: '-.o', executing: 'o.o', error: '>.<' },
|
|
138
|
+
tells: { happy: '~', sad: '_', thinking: '~', executing: '~', error: '/' },
|
|
139
|
+
poses: {
|
|
140
|
+
// The tail changes sides while it waits, which is the whole idle.
|
|
141
|
+
'idle.front': [art `
|
|
142
|
+
/\_/\
|
|
143
|
+
( %%% )
|
|
144
|
+
> ^ <
|
|
145
|
+
#(,, ,,)
|
|
146
|
+
`, art `
|
|
147
|
+
/\_/\
|
|
148
|
+
( %%% )
|
|
149
|
+
> ^ <
|
|
150
|
+
(,, ,,)#
|
|
151
|
+
`],
|
|
152
|
+
'sit.front': art `
|
|
153
|
+
/\_/\
|
|
154
|
+
(=%%%=)
|
|
155
|
+
(,, ,,)#
|
|
156
|
+
`,
|
|
157
|
+
'idle.right': art `
|
|
158
|
+
/\_/\
|
|
159
|
+
( %%%)
|
|
160
|
+
) >^<
|
|
161
|
+
/ || \
|
|
162
|
+
#(,(,)(,))
|
|
163
|
+
`,
|
|
164
|
+
'idle.left': art `
|
|
165
|
+
/\_/\
|
|
166
|
+
(%%% )
|
|
167
|
+
>^< (
|
|
168
|
+
/ || \
|
|
169
|
+
((,)(,),)#
|
|
170
|
+
`,
|
|
171
|
+
'sit.right': art `
|
|
172
|
+
/\_/\
|
|
173
|
+
( %%%)
|
|
174
|
+
) >^<
|
|
175
|
+
/ || \
|
|
176
|
+
#(,(,)(,))
|
|
177
|
+
`,
|
|
178
|
+
'sit.left': art `
|
|
179
|
+
/\_/\
|
|
180
|
+
(%%% )
|
|
181
|
+
>^< (
|
|
182
|
+
/ || \
|
|
183
|
+
((,)(,),)#
|
|
184
|
+
`,
|
|
185
|
+
'walk.right': [art `
|
|
186
|
+
n
|
|
187
|
+
// /\_/\
|
|
188
|
+
((_______( =%%%)
|
|
189
|
+
| _ >^<
|
|
190
|
+
\ / ----.//-\\
|
|
191
|
+
|,),) (,) (,)
|
|
192
|
+
`, art `
|
|
193
|
+
n
|
|
194
|
+
|| /\_/\
|
|
195
|
+
((_______( =%%%)
|
|
196
|
+
\ >^<
|
|
197
|
+
||------\\-/
|
|
198
|
+
(,)) (,))
|
|
199
|
+
`, art `
|
|
200
|
+
n
|
|
201
|
+
)) /\_/\
|
|
202
|
+
\\-______( =%%%)
|
|
203
|
+
\ >^<
|
|
204
|
+
/\ |----- \ |
|
|
205
|
+
( (,) ((,)
|
|
206
|
+
`],
|
|
207
|
+
'walk.left': [art `
|
|
208
|
+
n
|
|
209
|
+
/\_/\ //
|
|
210
|
+
(%%%= )_____- (
|
|
211
|
+
>^< /
|
|
212
|
+
-// -- - \\
|
|
213
|
+
(,) ) (,(,)
|
|
214
|
+
`, art `
|
|
215
|
+
n
|
|
216
|
+
/\_/\ \\
|
|
217
|
+
(%%%= ) ______))
|
|
218
|
+
>^< _ |
|
|
219
|
+
/-\\- - --//. \
|
|
220
|
+
(,) (,) (,) (,)
|
|
221
|
+
`, art `
|
|
222
|
+
n
|
|
223
|
+
/\_/\ \\
|
|
224
|
+
(%%%= ) ______))
|
|
225
|
+
>^< _ |
|
|
226
|
+
|-/- -- --| /\
|
|
227
|
+
(,)) (,) )
|
|
228
|
+
`],
|
|
229
|
+
jump: art `
|
|
230
|
+
/\_/\
|
|
231
|
+
( %%% )
|
|
232
|
+
> ^ <
|
|
233
|
+
(___)#
|
|
234
|
+
) (
|
|
235
|
+
`,
|
|
236
|
+
fall: art `
|
|
237
|
+
/\_/\
|
|
238
|
+
( %%% )
|
|
239
|
+
> ^ <
|
|
240
|
+
/_|_\#
|
|
241
|
+
(,)) ((,)
|
|
242
|
+
`,
|
|
243
|
+
land: art `
|
|
244
|
+
/\_/\
|
|
245
|
+
( %%% )
|
|
246
|
+
> Y <
|
|
247
|
+
/ \#
|
|
248
|
+
//---\\
|
|
249
|
+
(,)) ((,)
|
|
250
|
+
`,
|
|
251
|
+
held: [
|
|
252
|
+
art `
|
|
253
|
+
|\_/|
|
|
254
|
+
("(~%%%~)")
|
|
255
|
+
\)>^<(/
|
|
256
|
+
| |
|
|
257
|
+
//-\\
|
|
258
|
+
(,) \\(,)
|
|
259
|
+
\\
|
|
260
|
+
U
|
|
261
|
+
`, art `
|
|
262
|
+
|\_/|
|
|
263
|
+
("(~%%%~)")
|
|
264
|
+
\)>^<(/
|
|
265
|
+
| |
|
|
266
|
+
//-\\
|
|
267
|
+
(,)// (,)
|
|
268
|
+
||
|
|
269
|
+
U
|
|
270
|
+
`, art `
|
|
271
|
+
|\_/|
|
|
272
|
+
("(~%%%~)")
|
|
273
|
+
\)>^<(/
|
|
274
|
+
| |
|
|
275
|
+
//-\\
|
|
276
|
+
(,)// (,)
|
|
277
|
+
\\
|
|
278
|
+
U
|
|
279
|
+
`
|
|
280
|
+
],
|
|
281
|
+
sleep: art `
|
|
282
|
+
/\_/\
|
|
283
|
+
( -.- )
|
|
284
|
+
(,,_,,)#
|
|
285
|
+
`,
|
|
286
|
+
alarm: art `
|
|
287
|
+
/\_/\
|
|
288
|
+
( %%% )
|
|
289
|
+
>WWW<
|
|
290
|
+
(/___\)#
|
|
291
|
+
`,
|
|
292
|
+
},
|
|
293
|
+
/**
|
|
294
|
+
* The escape hatch the face slot cannot cover.
|
|
295
|
+
*
|
|
296
|
+
* A working cat is at a keyboard, which is a different outline rather than
|
|
297
|
+
* a different expression - no substitution into the standing drawing gets
|
|
298
|
+
* there. It bobs its head one cell between the two frames, which is why
|
|
299
|
+
* the anchor is taken from frame zero and shared: per-frame it would hold
|
|
300
|
+
* the head still and slide the desk instead.
|
|
301
|
+
*/
|
|
302
|
+
overrides: {
|
|
303
|
+
executing: {
|
|
304
|
+
'idle.front': [art `
|
|
305
|
+
n /\_/\
|
|
306
|
+
//_____(=%%%=)
|
|
307
|
+
((/ )_ >^<
|
|
308
|
+
\_(__ ,)-(_c@c_)
|
|
309
|
+
`, art `
|
|
310
|
+
n /\_/\
|
|
311
|
+
\\ _____(=%%%=)
|
|
312
|
+
||/ )_ >u<
|
|
313
|
+
\_(__ ,)-(_c@c_)
|
|
314
|
+
`],
|
|
315
|
+
'idle.right': [art `
|
|
316
|
+
n /\_/\
|
|
317
|
+
//_____(=%%%=)
|
|
318
|
+
((/ )_ >^<
|
|
319
|
+
\_(__ ,)-(_c@c_)
|
|
320
|
+
`, art `
|
|
321
|
+
n /\_/\
|
|
322
|
+
\\ _____(=%%%=)
|
|
323
|
+
||/ )_ >u<
|
|
324
|
+
\_(__ ,)-(_c@c_)
|
|
325
|
+
`],
|
|
326
|
+
'idle.left': [art `
|
|
327
|
+
/\_/\ n
|
|
328
|
+
(=%%%=)_____ \\
|
|
329
|
+
>^< __( \))
|
|
330
|
+
(_c@c_)-(, __)_/
|
|
331
|
+
`, art `
|
|
332
|
+
/\_/\ n
|
|
333
|
+
(=%%%=)_____ \\
|
|
334
|
+
>u< __( \))
|
|
335
|
+
(_c@c_)-(, __)_/
|
|
336
|
+
`],
|
|
337
|
+
'sit.front': art `
|
|
338
|
+
n /\_/\
|
|
339
|
+
//_____(=%%%=)
|
|
340
|
+
((/ )_ >^<
|
|
341
|
+
\_(__ ,)-(_c@c_)
|
|
342
|
+
`,
|
|
343
|
+
'sit.right': art `
|
|
344
|
+
n /\_/\
|
|
345
|
+
//_____(=%%%=)
|
|
346
|
+
((/ )_ >^<
|
|
347
|
+
\_(__ ,)-(_c@c_)
|
|
348
|
+
`,
|
|
349
|
+
'sit.left': art `
|
|
350
|
+
/\_/\ n
|
|
351
|
+
(=%%%=)_____ \\
|
|
352
|
+
>^< __( \))
|
|
353
|
+
(_c@c_)-(, __)_/
|
|
354
|
+
`,
|
|
355
|
+
},
|
|
356
|
+
},
|
|
357
|
+
},
|
|
358
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A crab. The widest of them at full size, and the claws are half of it.
|
|
3
|
+
*
|
|
4
|
+
* The legs flip between frames while it is working rather than the face
|
|
5
|
+
* changing, because a crab that is busy is a crab that is moving sideways.
|
|
6
|
+
*/
|
|
7
|
+
export declare const crab: import("./types.js").CreatureSpec;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { alternate, art, blink } from './art.js';
|
|
2
|
+
import { defineCreature } from './types.js';
|
|
3
|
+
/**
|
|
4
|
+
* A crab. The widest of them at full size, and the claws are half of it.
|
|
5
|
+
*
|
|
6
|
+
* The legs flip between frames while it is working rather than the face
|
|
7
|
+
* changing, because a crab that is busy is a crab that is moving sideways.
|
|
8
|
+
*/
|
|
9
|
+
export const crab = defineCreature({
|
|
10
|
+
name: 'crab',
|
|
11
|
+
label: 'Crab',
|
|
12
|
+
about: 'Gets there sideways, but gets there',
|
|
13
|
+
draw: {
|
|
14
|
+
happy: blink(art `
|
|
15
|
+
(\)_ _(/)
|
|
16
|
+
\\_______//
|
|
17
|
+
( ^ ^ )
|
|
18
|
+
\_|_|_|_/
|
|
19
|
+
/\ /\
|
|
20
|
+
`, art `
|
|
21
|
+
(\)_ _(/)
|
|
22
|
+
\\_______//
|
|
23
|
+
( - - )
|
|
24
|
+
\_|_|_|_/
|
|
25
|
+
/\ /\
|
|
26
|
+
`),
|
|
27
|
+
sad: art `
|
|
28
|
+
(\)_ _(/)
|
|
29
|
+
\\_______//
|
|
30
|
+
( T T )
|
|
31
|
+
\_|_|_|_/
|
|
32
|
+
// \\
|
|
33
|
+
`,
|
|
34
|
+
thinking: alternate(art `
|
|
35
|
+
(\)_ _(/)
|
|
36
|
+
\\_______// o
|
|
37
|
+
( o - )
|
|
38
|
+
\_|_|_|_/
|
|
39
|
+
/\ /\
|
|
40
|
+
`, art `
|
|
41
|
+
(\)_ _(/)
|
|
42
|
+
\\_______// .
|
|
43
|
+
( o - )
|
|
44
|
+
\_|_|_|_/
|
|
45
|
+
/\ /\
|
|
46
|
+
`),
|
|
47
|
+
// Scuttling. Same face, legs the other way round.
|
|
48
|
+
executing: [art `
|
|
49
|
+
(\)_ _(/)
|
|
50
|
+
\\_______//
|
|
51
|
+
( o o )
|
|
52
|
+
\_|_|_|_/
|
|
53
|
+
/\ /\
|
|
54
|
+
`, art `
|
|
55
|
+
(\)_ _(/)
|
|
56
|
+
\\_______//
|
|
57
|
+
( o - )
|
|
58
|
+
\_|_|_|_/
|
|
59
|
+
\/ \/
|
|
60
|
+
`, art `
|
|
61
|
+
(\)_ _(/)
|
|
62
|
+
\\_______//
|
|
63
|
+
( - o )
|
|
64
|
+
\_|_|_|_/
|
|
65
|
+
/\ /\
|
|
66
|
+
`],
|
|
67
|
+
error: art `
|
|
68
|
+
(\/) (\/)
|
|
69
|
+
\\_________//
|
|
70
|
+
( > < )
|
|
71
|
+
\_|_|_|_/
|
|
72
|
+
/\ /\
|
|
73
|
+
`,
|
|
74
|
+
},
|
|
75
|
+
block: {
|
|
76
|
+
happy: blink(art `
|
|
77
|
+
V_ _V
|
|
78
|
+
(^.^)
|
|
79
|
+
^ ^
|
|
80
|
+
`, art `
|
|
81
|
+
V_ _V
|
|
82
|
+
(-.-)
|
|
83
|
+
^ ^
|
|
84
|
+
`),
|
|
85
|
+
sad: art `
|
|
86
|
+
\_ _/
|
|
87
|
+
(T.T)
|
|
88
|
+
^ ^
|
|
89
|
+
`,
|
|
90
|
+
thinking: art `
|
|
91
|
+
V_ _V
|
|
92
|
+
(-.o)
|
|
93
|
+
^ ^
|
|
94
|
+
`,
|
|
95
|
+
executing: [art `
|
|
96
|
+
V_ _V
|
|
97
|
+
(o.o)
|
|
98
|
+
^ ^
|
|
99
|
+
`, art `
|
|
100
|
+
V_ _V
|
|
101
|
+
(o.-)
|
|
102
|
+
v v
|
|
103
|
+
`, art `
|
|
104
|
+
V_ _V
|
|
105
|
+
(-.o)
|
|
106
|
+
^ ^
|
|
107
|
+
`],
|
|
108
|
+
error: art `
|
|
109
|
+
V_ _V
|
|
110
|
+
(>.<)
|
|
111
|
+
^ ^
|
|
112
|
+
`,
|
|
113
|
+
},
|
|
114
|
+
inline: {
|
|
115
|
+
happy: blink(art `V^.^V`, art `V-.-V`),
|
|
116
|
+
sad: art `\T.T/`,
|
|
117
|
+
thinking: art `V-.oV`,
|
|
118
|
+
executing: [art `Vo.oV`, art `Vo.-V`, art `V-.oV`],
|
|
119
|
+
error: art `V>.<V`,
|
|
120
|
+
},
|
|
121
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { beetle } from './beetle.js';
|
|
2
|
+
import { bunny } from './bunny.js';
|
|
3
|
+
import { cat } from './cat.js';
|
|
4
|
+
import { crab } from './crab.js';
|
|
5
|
+
import { owl } from './owl.js';
|
|
6
|
+
import { sprout } from './sprout.js';
|
|
7
|
+
/**
|
|
8
|
+
* The bood: one creature per file, and this is where they are registered.
|
|
9
|
+
*
|
|
10
|
+
* Named imports rather than side-effecting ones, so registration is a
|
|
11
|
+
* statement somebody can read and reorder rather than a consequence of import
|
|
12
|
+
* order. The list is the roster, and its order is the order a picker shows.
|
|
13
|
+
*
|
|
14
|
+
* Nothing outside this file is on a different footing: a consumer with their
|
|
15
|
+
* own drawing calls `registerCreature` with it and it is one of these.
|
|
16
|
+
*/
|
|
17
|
+
export declare const BOOD: import("./types.js").Creature[];
|
|
18
|
+
export { beetle, bunny, cat, crab, owl, sprout };
|
|
19
|
+
export { alternate, anchorOf, art, blink, blit, fill, metric } from './art.js';
|
|
20
|
+
export { boodHeight, creatureFrames, creatureMotion, creatureNames, creatureSize, drawCreature, getCreature, listCreatures, livelyNames, poseFrames, registerCreature, } from './registry.js';
|
|
21
|
+
export type { DrawOptions } from './registry.js';
|
|
22
|
+
export { carry, createBody, decide, faceOf, frameOf, GAITS, GRIP, grab, poseOf, release, slipped, stepBody, WORLD, } from './motion.js';
|
|
23
|
+
export type { Body, Gait, Grip, Intent, World } from './motion.js';
|
|
24
|
+
export { BOUNDS, FACINGS, FORMS, MOODS, POSES, defineCreature } from './types.js';
|
|
25
|
+
export type { Cell, Creature as RegisteredCreature, CreatureSpec, Facing, Form, Mood, Motion, Pose, PoseKey, } from './types.js';
|
|
26
|
+
export { Creature } from './render.js';
|
|
27
|
+
export { BoodSprite } from './sprite.js';
|
|
28
|
+
export type { BoodSpriteProps } from './sprite.js';
|
|
29
|
+
export type { CreatureProps } from './render.js';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { beetle } from './beetle.js';
|
|
2
|
+
import { bunny } from './bunny.js';
|
|
3
|
+
import { cat } from './cat.js';
|
|
4
|
+
import { crab } from './crab.js';
|
|
5
|
+
import { owl } from './owl.js';
|
|
6
|
+
import { registerCreature } from './registry.js';
|
|
7
|
+
import { sprout } from './sprout.js';
|
|
8
|
+
/**
|
|
9
|
+
* The bood: one creature per file, and this is where they are registered.
|
|
10
|
+
*
|
|
11
|
+
* Named imports rather than side-effecting ones, so registration is a
|
|
12
|
+
* statement somebody can read and reorder rather than a consequence of import
|
|
13
|
+
* order. The list is the roster, and its order is the order a picker shows.
|
|
14
|
+
*
|
|
15
|
+
* Nothing outside this file is on a different footing: a consumer with their
|
|
16
|
+
* own drawing calls `registerCreature` with it and it is one of these.
|
|
17
|
+
*/
|
|
18
|
+
export const BOOD = [cat, bunny, crab, owl, beetle, sprout].map(registerCreature);
|
|
19
|
+
export { beetle, bunny, cat, crab, owl, sprout };
|
|
20
|
+
export { alternate, anchorOf, art, blink, blit, fill, metric } from './art.js';
|
|
21
|
+
export { boodHeight, creatureFrames, creatureMotion, creatureNames, creatureSize, drawCreature, getCreature, listCreatures, livelyNames, poseFrames, registerCreature, } from './registry.js';
|
|
22
|
+
export { carry, createBody, decide, faceOf, frameOf, GAITS, GRIP, grab, poseOf, release, slipped, stepBody, WORLD, } from './motion.js';
|
|
23
|
+
export { BOUNDS, FACINGS, FORMS, MOODS, POSES, defineCreature } from './types.js';
|
|
24
|
+
export { Creature } from './render.js';
|
|
25
|
+
export { BoodSprite } from './sprite.js';
|